diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-01-10 18:08:43 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-01-10 18:08:43 +0000 |
commit | ba1225c72b7d139e2705461a08325ee1ea7c0cda (patch) | |
tree | 68262134c51be5bbe98fde290f656c4c9173c8d5 /actionpack/lib/action_controller | |
parent | 28767075f4b0a8d610e14a095da1babc363af05a (diff) | |
download | rails-ba1225c72b7d139e2705461a08325ee1ea7c0cda.tar.gz rails-ba1225c72b7d139e2705461a08325ee1ea7c0cda.tar.bz2 rails-ba1225c72b7d139e2705461a08325ee1ea7c0cda.zip |
add some more detail on nested resource docs [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5877 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/resources.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/resources.rb b/actionpack/lib/action_controller/resources.rb index fd3c08c303..f23ebfb813 100644 --- a/actionpack/lib/action_controller/resources.rb +++ b/actionpack/lib/action_controller/resources.rb @@ -175,7 +175,15 @@ module ActionController # map.resources :articles do |article| # article.resources :comments # end - # + # + # The comment resources work the same, but must now include a value for :article_id. + # + # comments_url(@article) + # comment_url(@article, @comment) + # + # comments_url(:article_id => @article) + # comment_url(:article_id => @article, :id => @comment) + # # * <tt>:name_prefix</tt> -- define a prefix for all generated routes, usually ending in an underscore. # Use this if you have named routes that may clash. # |