Class: Admin::SiteSettingsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Admin::SiteSettingsController
- Defined in:
- app/controllers/admin/site_settings_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/controllers/admin/site_settings_controller.rb', line 12 def destroy @site_settings.site_logo.destroy if @site_settings.save flash[:notice] = t(:site_logo_removed_successfully) redirect_to edit_admin_site_settings_path end end |
#edit ⇒ Object
2 3 |
# File 'app/controllers/admin/site_settings_controller.rb', line 2 def edit end |
#update ⇒ Object
5 6 7 8 9 10 |
# File 'app/controllers/admin/site_settings_controller.rb', line 5 def update if @site_settings.update_attributes(params[:admin_site_settings]) flash[:notice] = t(:site_settings_updated_successfully) redirect_to :back end end |