fix: after software change redirect to edit page
This commit is contained in:
parent
d6d2ad0b15
commit
5d948b79bd
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ class SoftwaresController < ApplicationController
|
|||
@software = Software.find(params[:id])
|
||||
|
||||
if @software.update(software_params)
|
||||
redirect_to @software
|
||||
redirect_to edit_software_path(@software)
|
||||
else
|
||||
render 'edit'
|
||||
end
|
||||
|
@ -40,7 +40,7 @@ class SoftwaresController < ApplicationController
|
|||
@software = Software.new(software_params)
|
||||
|
||||
if @software.save
|
||||
redirect_to @software
|
||||
redirect_to edit_software_path(@software)
|
||||
else
|
||||
render 'new'
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue