Merge pull request #2578 from rahul2240/master-alias
add booth in alias
This commit is contained in:
commit
86440cb956
29 changed files with 81 additions and 74 deletions
|
|
@ -23,9 +23,9 @@ class BoothsController < ApplicationController
|
|||
|
||||
if @booth.save
|
||||
redirect_to conference_booths_path,
|
||||
notice: 'Booth successfully created.'
|
||||
notice: "#{(t 'booth').capitalize} successfully created."
|
||||
else
|
||||
flash.now[:error] = "Creating booth failed. #{@booth.errors.full_messages.to_sentence}."
|
||||
flash.now[:error] = "Creating #{t 'booth'} failed. #{@booth.errors.full_messages.to_sentence}."
|
||||
render :new
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue