diff options
author | Xavier Noria <fxn@hashref.com> | 2008-05-23 01:03:00 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2008-05-23 01:03:00 +0200 |
commit | 63946cfb0ecb1a30b254920df7daee57b36ce7ec (patch) | |
tree | 9a589e13703fb5fef8ad09b77c0e03905006e411 /actionpack/lib/action_controller | |
parent | 22a47cb1aeee8ada2396ddf0270c45749b59f16e (diff) | |
download | rails-63946cfb0ecb1a30b254920df7daee57b36ce7ec.tar.gz rails-63946cfb0ecb1a30b254920df7daee57b36ce7ec.tar.bz2 rails-63946cfb0ecb1a30b254920df7daee57b36ce7ec.zip |
overall cleanup of "#=>" and other minor details
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/polymorphic_routes.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/actionpack/lib/action_controller/polymorphic_routes.rb b/actionpack/lib/action_controller/polymorphic_routes.rb index c083993fc0..509fa6a08e 100644 --- a/actionpack/lib/action_controller/polymorphic_routes.rb +++ b/actionpack/lib/action_controller/polymorphic_routes.rb @@ -9,7 +9,9 @@ module ActionController # Nested resources and/or namespaces are also supported, as illustrated in the example: # # polymorphic_url([:admin, @article, @comment]) - # #-> results in: + # + # results in: + # # admin_article_comment_url(@article, @comment) # # == Usage within the framework @@ -38,11 +40,8 @@ module ActionController # # Example usage: # - # edit_polymorphic_path(@post) - # #=> /posts/1/edit - # - # formatted_polymorphic_path([@post, :pdf]) - # #=> /posts/1.pdf + # edit_polymorphic_path(@post) # => "/posts/1/edit" + # formatted_polymorphic_path([@post, :pdf]) # => "/posts/1.pdf" module PolymorphicRoutes # Constructs a call to a named RESTful route for the given record and returns the # resulting URL string. For example: |