Permalink
Browse files

Update actionpack/lib/action_view/renderer/partial_renderer.rb

  • Loading branch information...
josevalim committed Jan 31, 2012
1 parent 98e1735 commit 9a76e1f92f3f5b5e40ee26d3b975366e952cd742
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/lib/action_view/renderer/partial_renderer.rb
@@ -85,8 +85,7 @@ module ActionView
# == Rendering objects that respond to `to_partial_path`
#
# Instead of explicitly naming the location of a partial, you can also let PartialRenderer do the work
- # and pick the proper path by checking `to_proper_path` method. If the object passed to render is a collection,
- # all objects must return the same path.
+ # and pick the proper path by checking `to_proper_path` method.

This comment has been minimized.

Show comment
Hide comment
@atambo

atambo Jan 31, 2012

Contributor

isn't it to_partial_path?

@atambo

atambo Jan 31, 2012

Contributor

isn't it to_partial_path?

This comment has been minimized.

Show comment
Hide comment
@josevalim

josevalim Jan 31, 2012

Contributor
@josevalim

josevalim via email Jan 31, 2012

Contributor
#
# # @account.to_partial_path returns 'accounts/account', so it can be used to replace:
# # <%= render :partial => "accounts/account", :locals => { :account => @account} %>

0 comments on commit 9a76e1f

Please sign in to comment.