<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,6 +9,19 @@ module StaticActions
       send(&quot;#{controller}_#{action}&quot;, path, :controller =&gt; controller.to_s, :action =&gt; action.to_s)
       send(&quot;#{controller}_#{action}_with_format&quot;, &quot;#{path}.:format&quot;, :controller =&gt; controller.to_s, :action =&gt; action.to_s)
     end
+    
+    def root_static_actions(controller, actions)
+      actions.each { |action| root_static_action(controller, action) }
+    end
+    
+    def root_static_action(controller, action)
+      if action.to_s == 'index'
+        root :controller =&gt; controller.to_s
+      else
+        send(&quot;#{action}&quot;, action.to_s, :controller =&gt; controller.to_s, :action =&gt; action.to_s)
+        send(&quot;#{action}_with_format&quot;, &quot;#{action.to_s}.:format&quot;, :controller =&gt; controller.to_s, :action =&gt; action.to_s)
+      end
+    end
   end
 end
 </diff>
      <filename>lib/static_actions/map_additions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -35,4 +35,22 @@ describe StaticActions::MapAdditions do
     @map.expects(:foo_bar).with('foo/bar', :controller =&gt; 'foo', :action =&gt; 'bar')
     @map.static_action :foo, :bar
   end
+  
+  it &quot;should be able to make a root action which doesn't include controller name&quot; do
+    @map.expects(:bar).with('bar', :controller =&gt; 'foo', :action =&gt; 'bar')
+    @map.expects(:bar_with_format).with('bar.:format', :controller =&gt; 'foo', :action =&gt; 'bar')
+    @map.root_static_action :foo, :bar
+  end
+  
+  it &quot;should use root named route for index root action&quot; do
+    @map.expects(:root).with(:controller =&gt; 'foo')
+    @map.root_static_action :foo, :index
+  end
+  
+  it &quot;should be able to specify multiple root actions&quot; do
+    @map.expects(:root).with(:controller =&gt; 'foo')
+    @map.expects(:bar).with('bar', :controller =&gt; 'foo', :action =&gt; 'bar')
+    @map.expects(:bar_with_format).with('bar.:format', :controller =&gt; 'foo', :action =&gt; 'bar')
+    @map.root_static_actions :foo, [:index, :bar]
+  end
 end</diff>
      <filename>spec/static_actions/map_additions_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bec446f883bb2741a0f2613f2fde9a04a119fa31</id>
    </parent>
  </parents>
  <author>
    <name>Ryan Bates</name>
    <email>rbates@artbeats.com</email>
  </author>
  <url>http://github.com/ryanb/static_actions/commit/061cdf2c98a6ba6fb0c537e11f29268741135bff</url>
  <id>061cdf2c98a6ba6fb0c537e11f29268741135bff</id>
  <committed-date>2008-04-03T11:55:25-07:00</committed-date>
  <authored-date>2008-04-03T11:55:25-07:00</authored-date>
  <message>adding root static action methods to remove the controller from the path</message>
  <tree>d473d6396ca3b6a5c25131b3af20193c71353907</tree>
  <committer>
    <name>Ryan Bates</name>
    <email>rbates@artbeats.com</email>
  </committer>
</commit>
