Merge pull request #2578 from rahul2240/master-alias

add booth in alias
This commit is contained in:
Ana María Martínez Gómez 2019-08-10 18:41:34 +02:00 committed by GitHub
commit 86440cb956
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 81 additions and 74 deletions

View file

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