<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test/app/views/comments/custom_action.html.erb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -25,7 +25,7 @@ ActionController::Routing::Routes.draw do |map|
     post.resources :comments, :name_prefix =&gt; &quot;post_&quot;
   end
   
-  map.resources :comments
+  map.resources :comments, :member =&gt; {:custom_action =&gt; :post}
 
   # The priority is based upon order of creation: first created -&gt; highest priority.
   </diff>
      <filename>test/config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -23,4 +23,13 @@ class CommentsControllerTest &lt; Test::Unit::TestCase
   should_be_restful do |resource|
     resource.formats = [:html]
   end
+  
+  context &quot;on post to custom_action&quot; do
+    setup do
+      post :custom_action, :id =&gt; @comment
+    end
+
+    should_render_template 'custom_action'
+    should_assign_to :comment
+  end
 end</diff>
      <filename>test/test/functional/comments_controller_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0a8903d9de26da9158882486b9735251ae6e8de4</id>
    </parent>
  </parents>
  <author>
    <name>James Golick</name>
    <email>james@giraffesoft.ca</email>
  </author>
  <url>http://github.com/giraffesoft/resource_controller/commit/a17e99a8b0087776a24dbc3bd5a6c2d53daab9a9</url>
  <id>a17e99a8b0087776a24dbc3bd5a6c2d53daab9a9</id>
  <committed-date>2008-05-07T19:14:33-07:00</committed-date>
  <authored-date>2008-05-07T19:14:33-07:00</authored-date>
  <message>Add a test for a generated custom action</message>
  <tree>b7ea4d4a1c28eada1292a45f34f74a0b057e9b5b</tree>
  <committer>
    <name>James Golick</name>
    <email>james@giraffesoft.ca</email>
  </committer>
</commit>
