add booth in alias

Booth can be replaced with any alias by replacing it in alias.en.yml.
This commit is contained in:
Rahul 2019-07-22 00:59:17 +05:30
parent 8eb059276f
commit bf7a7932ba
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