Class: Locomotive::TranslationsController
Instance Method Summary
collapse
#current_site_public_url, #public_page_url, #switch_to_site_url
#sections
#back_to_default_site_locale, #current_content_locale, #localized?, #set_back_office_locale, #set_current_content_locale, #setup_i18n_fallbacks
Instance Method Details
#create ⇒ Object
17
18
19
20
|
# File 'app/controllers/locomotive/translations_controller.rb', line 17
def create
@translation = current_site.translations.create(params[:translation])
respond_with @translation, location: translations_path
end
|
#edit ⇒ Object
22
23
24
|
# File 'app/controllers/locomotive/translations_controller.rb', line 22
def edit
respond_with @translation
end
|
#index ⇒ Object
10
11
|
# File 'app/controllers/locomotive/translations_controller.rb', line 10
def index
end
|
#new ⇒ Object
13
14
15
|
# File 'app/controllers/locomotive/translations_controller.rb', line 13
def new
respond_with @translation
end
|
#update ⇒ Object
26
27
28
29
30
|
# File 'app/controllers/locomotive/translations_controller.rb', line 26
def update
@translation = current_site.translations.find(params[:id])
@translation.update_attributes(params[:translation])
respond_with @translation, location: translations_path
end
|