<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -18,19 +18,24 @@ class Administration::AdminsController &lt; ApplicationController
           flash[:notice] = &quot;#{person.name} is a Super Administrator.&quot;
         else
           person.admin = Admin.create!
-          add_errors_to_flash(person) unless person.save
+          if person.save
+            flash[:notice] = 'Admin created.'
+          else
+            add_errors_to_flash(person)
+          end
         end
       else
         flash[:notice] = 'No more admins are allowed.'
       end
     end
-    redirect_to admin_path
+    redirect_to administration_admins_path
   end
   
   def destroy
     @admin = Admin.find(params[:id])
     @admin.destroy
-    redirect_to admin_path
+    flash[:notice] = 'Admin removed.'
+    redirect_to administration_admins_path
   end
   
   private</diff>
      <filename>app/controllers/administration/admins_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,7 @@
 class Administration::SettingsController &lt; ApplicationController
   
+  before_filter :only_admins
+  
   def index
     @settings = Setting.find_all_by_site_id_and_hidden(
       Site.current.id,
@@ -22,9 +24,28 @@ class Administration::SettingsController &lt; ApplicationController
       value = value == 'true' if setting.format == 'boolean'
       setting.update_attributes! :value =&gt; value
     end
-    Setting.precache_settings(true)
-    expire_fragment(%r{views/})
+    reload_settings
     flash[:notice] = 'Settings saved.'
     redirect_to administration_settings_path
   end
+  
+  def reload
+    reload_settings
+    flash[:notice] = 'Settings reloaded.'
+    redirect_to admin_path
+  end
+  
+  private
+  
+    def only_admins
+      unless @logged_in.super_admin?
+        render :text =&gt; 'You must be a super administrator to modify settings.', :layout =&gt; true, :status =&gt; 401
+        return false
+      end
+    end
+  
+    def reload_settings
+      Setting.precache_settings(true)
+      expire_fragment(%r{views/})
+    end
 end</diff>
      <filename>app/controllers/administration/settings_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,6 +25,7 @@
       &lt;li&gt;&lt;%= link_to 'Community Logo', administration_logo_path %&gt;&lt;/li&gt;
       &lt;li&gt;&lt;%= link_to 'Custom Theme', edit_administration_theme_path %&gt;&lt;/li&gt;
       &lt;li&gt;&lt;%= link_to 'Pages', pages_path %&gt;&lt;/li&gt;
+      &lt;li&gt;&lt;%= link_to 'Reload Settings', reload_administration_settings_path, :method =&gt; 'put', :title =&gt; 'If you have made modifications to the system from the command line, you may need to reload all settings to see the changes take effect.' %&gt;&lt;/li&gt;
     &lt;/ul&gt;
   &lt;% end %&gt;
 &lt;% end %&gt;</diff>
      <filename>app/views/administration/dashboards/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -107,7 +107,7 @@ unless defined?(DISABLE_ROUTES)
       admin.resources :admins
       admin.resources :membership_requests
       admin.resources :log_items, :collection =&gt; {:batch =&gt; :put}
-      admin.resources :settings, :collection =&gt; {:batch =&gt; :put}
+      admin.resources :settings, :collection =&gt; {:batch =&gt; :put, :reload =&gt; :put}
       admin.resources :files, :requirements =&gt; {:id =&gt; /[a-z0-9_]+(\.[a-z0-9_]+)?/}
       admin.resources :attendance
       admin.resource :theme</diff>
      <filename>config/routes.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f10881b32d92bf5207267b22235e91f27c925b28</id>
    </parent>
  </parents>
  <author>
    <name>Tim Morgan</name>
    <email>tim@timmorgan.org</email>
  </author>
  <url>http://github.com/seven1m/onebody/commit/9f43aad3685353d701c50904c3ebaefa85a16e87</url>
  <id>9f43aad3685353d701c50904c3ebaefa85a16e87</id>
  <committed-date>2009-10-25T13:56:02-07:00</committed-date>
  <authored-date>2009-10-25T13:56:02-07:00</authored-date>
  <message>Ability to reload settings from admin dashboard.</message>
  <tree>cb00bb9af7caebdbea3525017fdaf87aae9f9888</tree>
  <committer>
    <name>Tim Morgan</name>
    <email>tim@timmorgan.org</email>
  </committer>
</commit>
