Class: Expat::TranslationsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Expat::TranslationsController
- Defined in:
- app/controllers/expat/translations_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
23 24 25 26 27 |
# File 'app/controllers/expat/translations_controller.rb', line 23 def create @translations[params[:key]] = params[:value] save_translations redirect_to locale_translations_path(@locale) end |
#destroy ⇒ Object
29 30 31 32 33 |
# File 'app/controllers/expat/translations_controller.rb', line 29 def destroy @translations.delete params[:id] save_translations redirect_to locale_translations_path(@locale) end |
#edit ⇒ Object
10 11 12 |
# File 'app/controllers/expat/translations_controller.rb', line 10 def edit @translation = @translations[params[:id]] end |
#index ⇒ Object
7 8 |
# File 'app/controllers/expat/translations_controller.rb', line 7 def index end |
#new ⇒ Object
20 21 |
# File 'app/controllers/expat/translations_controller.rb', line 20 def new end |
#update ⇒ Object
14 15 16 17 18 |
# File 'app/controllers/expat/translations_controller.rb', line 14 def update @translations[params[:id]] = params[:value] save_translations redirect_to locale_translations_path(@locale) end |