lib/usher/util/generate.rb in usher-0.8.0 vs lib/usher/util/generate.rb in usher-0.8.1

- old
+ new

@@ -73,10 +73,10 @@ result = generate_start(path, request) result << generate_path(path, params) end - # Generates a completed URL based on a +route+ or set of optional +params+ + # Generates a completed URL based on a `route` or set of optional `params` # # set = Usher.new # route = set.add_named_route(:test_route, '/:controller/:action') # set.generator.generate(nil, {:controller => 'c', :action => 'a'}) == '/c/a' => true # set.generator.generate(:test_route, {:controller => 'c', :action => 'a'}) == '/c/a' => true