<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -10,6 +10,7 @@ Rails Example
 	# in acts_as_commentable plugin
 	ActionController::Routing.routes_for_acts_as(:commentable) do |map|
 		map.resources :comments
+		map.best_comment '/best-comment', :controller =&gt; 'comments', :action =&gt; 'best'
 	end
 
 	# in acts_as_reviewable plugin
@@ -24,6 +25,8 @@ Rails Example
 
 	# in some view
 	&lt;%=person_comments_path(Person.first)%&gt;
+	&lt;%=person_reviews_path(Person.first)%&gt;
+	&lt;%=person_best_comment_path(Person.first)%&gt;
 
 
 Merb Example
@@ -32,6 +35,7 @@ Merb Example
 	# in acts_as_commentable plugin
 	Merb::Router.routes_for_acts_as(:commentable) do |map|
 		map.resources :comments
+		map.match('/best-comment').to(:controller =&gt; 'comments', :action =&gt; 'best').name(:best_comment)
 	end
 
 	# in acts_as_reviewable plugin
@@ -46,6 +50,8 @@ Merb Example
 
 	# in some view
 	&lt;%=url(:person_comments, :person =&gt; Person.first)%&gt;
+	&lt;%=url(:person_reviews, :person =&gt; Person.first)%&gt;
+	&lt;%=url(:person_best_comment, :person =&gt; Person.first)%&gt;
 
 
 Copyright (c) 2008 HungryMachine, released under the MIT license</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+#!/usr/bin/env ruby
+
 require 'test/unit'
 require 'rubygems'
 
@@ -18,7 +20,7 @@ require &quot;acts_as_routing&quot;
 
 class ActsAsRoutingTest &lt; Test::Unit::TestCase
   if defined?(Merb::Router)
-    def test_merb
+    def test_merb_basic
       assert_nil Merb::Router.routes_for_acts_as(:commentable)
       assert_raise(Merb::ControllerExceptions::NotImplemented) do
         Merb::Router.prepare { resources :people, :acts_as =&gt; [:commentable] }
@@ -30,10 +32,22 @@ class ActsAsRoutingTest &lt; Test::Unit::TestCase
       
       assert_equal &quot;/people/1/comments&quot;, Merb::Router.url(:person_comments, :person_id =&gt; 1)
     end
+
+    def test_merb_named_routes
+      Merb::Router.routes_for_acts_as(:commentable) do |map|
+        map.match('/best-comment').to(:controller =&gt; 'comments', :action =&gt; 'best').name(:best_comment)
+      end
+
+      Merb::Router.prepare do
+        resources :people, :acts_as =&gt; [:commentable]
+      end
+      
+      assert_equal &quot;/people/1/best-comment&quot;, Merb::Router.url(:person_best_comment, :person_id =&gt; 1)
+    end
   end
   
   if defined?(ActionController::Routing)
-    def test_rails
+    def test_rails_basic
       assert_nil ActionController::Routing.routes_for_acts_as(:commentable)
       assert_raise(ActionController::RoutingError) do
         ActionController::Routing::Routes.draw { |map| map.resources :people, :acts_as =&gt; [:commentable] }
@@ -45,5 +59,18 @@ class ActsAsRoutingTest &lt; Test::Unit::TestCase
 
       assert_equal &quot;/people/1/comments&quot;, ActionController::Routing::Routes.generate(:use_route =&gt; :person_comments, :person_id =&gt; 1)
     end
+
+    def test_rails_named_routes
+      ActionController::Routing.routes_for_acts_as(:commentable) do |map|
+        map.best_comment '/best-comment', :controller =&gt; 'comments', :action =&gt; 'best'
+      end
+
+      ActionController::Routing::Routes.draw do |map|
+        map.resources :people, :acts_as =&gt; [:commentable]
+      end
+      
+      assert_equal &quot;/people/1/best-comment&quot;, ActionController::Routing::Routes.generate(:use_route =&gt; :person_best_comment, :person_id =&gt; 1)
+    end
+
   end
 end</diff>
      <filename>test/acts_as_routing_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d2138312a21ae105ec09edc78dd81a417c0c179a</id>
    </parent>
  </parents>
  <author>
    <name>Warren Konkel</name>
    <email>wkonkel@gmail.com</email>
  </author>
  <url>http://github.com/hungrymachine/acts_as_routing/commit/8be6039707d019fdd704697440a1ec29755fcbb0</url>
  <id>8be6039707d019fdd704697440a1ec29755fcbb0</id>
  <committed-date>2008-11-26T10:15:16-08:00</committed-date>
  <authored-date>2008-11-26T10:15:16-08:00</authored-date>
  <message>showing off named routes</message>
  <tree>48cfe2b6094c5e204fbd8d6605a48e54811c5287</tree>
  <committer>
    <name>Warren Konkel</name>
    <email>wkonkel@gmail.com</email>
  </committer>
</commit>
