diff --git a/app/controllers/admin/admin_panel_controller.rb b/app/controllers/admin/admin_panel_controller.rb index 0281196..2cde1da 100644 --- a/app/controllers/admin/admin_panel_controller.rb +++ b/app/controllers/admin/admin_panel_controller.rb @@ -12,6 +12,14 @@ class AdminPanelController < AdminController environment end + def site_info + if request.post? + if @environment.update_attributes(params[:environment]) + redirect_to :action => 'index' + end + end + end + protected def load_default_enviroment diff --git a/app/views/admin_panel/index.rhtml b/app/views/admin_panel/index.rhtml index 2030d51..b9a0d75 100644 --- a/app/views/admin_panel/index.rhtml +++ b/app/views/admin_panel/index.rhtml @@ -3,6 +3,7 @@
<%= _('You, as an environment administrator, has the following options:')%>