diff options
author | Ben Harris <ben@tilde.team> | 2022-01-15 14:08:29 -0500 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2022-01-15 14:08:29 -0500 |
commit | c5b9fe77a8a0e1c2e6a051b700c5a5d4b98ff6fb (patch) | |
tree | 8848d77d25ff12b81b3269f370b99cc44c3fe1f7 /app/controllers/machines_controller.rb | |
parent | 1d9a622303d7ef6c2f1db99d759554c268767cc4 (diff) |
add randomizer
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 3ef5893..33dcd3b 100644 --- a/app/controllers/machines_controller.rb +++ b/app/controllers/machines_controller.rb @@ -25,7 +25,7 @@ class MachinesController < ApplicationController respond_to do |format| if @machine.save - format.html { redirect_to machines_url, notice: 'Machine was successfully created.' } + format.html { redirect_to machines_url, notice: "Added #{@machine.name} #{@machine.edition}." } format.json { render :show, status: :created, location: @machine } else format.html { render :new, status: :unprocessable_entity } @@ -38,7 +38,7 @@ class MachinesController < ApplicationController def update respond_to do |format| if @machine.update(machine_params) - format.html { redirect_to machines_url, notice: 'Machine was successfully updated.' } + format.html { redirect_to machines_url, notice: "Updated #{@machine.name} #{@machine.edition}." } format.json { render :show, status: :ok, location: @machine } else format.html { render :show, status: :unprocessable_entity } |