aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorTomK32 <tomk32@tomk32.de>2008-06-11 19:29:01 +0200
committerTomK32 <tomk32@tomk32.de>2008-06-11 19:29:01 +0200
commit235cd218b692d5a648a03cf574f5a049202845ea (patch)
treec76ecd8635e8521677b8474f4606dd824c169a6f /actionpack
parent6a5ac86207765e2c041378b35c05812f9bfe68b9 (diff)
downloadrails-235cd218b692d5a648a03cf574f5a049202845ea.tar.gz
rails-235cd218b692d5a648a03cf574f5a049202845ea.tar.bz2
rails-235cd218b692d5a648a03cf574f5a049202845ea.zip
note on increasing performance a bit when using restful urls
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/resources.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/resources.rb b/actionpack/lib/action_controller/resources.rb
index 9fb1f9fa39..79ec2b13b7 100644
--- a/actionpack/lib/action_controller/resources.rb
+++ b/actionpack/lib/action_controller/resources.rb
@@ -296,6 +296,10 @@ module ActionController
# article_comments_url(:article_id => @article)
# article_comment_url(:article_id => @article, :id => @comment)
#
+ # If you don't want to load all objects from the database you might want to use the <tt>article_id</tt> directly:
+ #
+ # articles_comments_url(@comment.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.
#