Class: Admin::SiteSettingsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/admin/site_settings_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



12
13
14
15
16
17
18
# File 'app/controllers/admin/site_settings_controller.rb', line 12

def destroy
  @site_settings..destroy
  if @site_settings.save
    flash[:notice] = t(:site_logo_removed_successfully)
    redirect_to edit_admin_site_settings_path
  end
end

#editObject



2
3
# File 'app/controllers/admin/site_settings_controller.rb', line 2

def edit
end

#updateObject



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