fix: after software change redirect to edit page

This commit is contained in:
Adrien Waksberg 2018-07-30 21:51:38 +02:00
parent d6d2ad0b15
commit 5d948b79bd

View file

@ -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