<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -98,14 +98,19 @@ module Halcyon
     #  url(:admin_permissons) # =&gt; &quot;/admin/permissions&quot;
     #  url(:user, @user) # =&gt; &quot;/users/1&quot;
     #
-    # Based on the identical method of Merb's controller.
+    # Based on the +generate_url+ method of Merb's controller.
     # 
-    def url(name, rparams={})
-      Halcyon::Application::Router.generate(name, rparams,
-        { :controller =&gt; controller_name,
-          :action =&gt; method
-        }
-      )
+    def url(name, *args)
+      unless Symbol === name
+        args.unshift(name)
+        name = :default
+      end
+      
+      unless route = Halcyon::Application::Router.named_routes[name]
+        raise ArgumentError.new(&quot;Named route #{name.inspect} not found&quot;)
+      end
+      
+      route.generate(args, {:controller =&gt; controller_name, :action =&gt; method})
     end
     
     #--</diff>
      <filename>lib/halcyon/controller.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f37a8f71a3ae728e97b4a5bf36b06a00bbd35929</id>
    </parent>
  </parents>
  <author>
    <name>Matt Todd</name>
    <email>chiology@gmail.com</email>
  </author>
  <url>http://github.com/mtodd/halcyon/commit/59b183e39445832c81ded4e02b9aceca4aa94c30</url>
  <id>59b183e39445832c81ded4e02b9aceca4aa94c30</id>
  <committed-date>2008-09-24T22:27:34-07:00</committed-date>
  <authored-date>2008-09-24T22:27:34-07:00</authored-date>
  <message>Updated URL generator to follow the new design. Specs fail at extract_options_from_args! but this may be resolved with the next push of changes to the 0.9.8 Router changes.</message>
  <tree>707d85a8d85205a066112826b2ba90297c4e9676</tree>
  <committer>
    <name>Matt Todd</name>
    <email>chiology@gmail.com</email>
  </committer>
</commit>
