diff options
Diffstat (limited to 'app/controllers/machines_controller.rb')
-rw-r--r-- | app/controllers/machines_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/machines_controller.rb b/app/controllers/machines_controller.rb index 3145fd1..cea2adc 100644 --- a/app/controllers/machines_controller.rb +++ b/app/controllers/machines_controller.rb @@ -20,7 +20,7 @@ class MachinesController < ApplicationController @machine = Machine.new(machine_params) if @machine.save - redirect_to @machine + redirect_to machines_path else render :new end @@ -34,7 +34,7 @@ class MachinesController < ApplicationController @machine = Machine.find(params[:id]) if @machine.update(machine_params) - redirect_to @machine + redirect_to machines_path else render :edit end |