Skip to content
Browse files

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

  • Loading branch information...
1 parent 98e1735 commit 9a76e1f92f3f5b5e40ee26d3b975366e952cd742 @josevalim josevalim committed Jan 31, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/lib/action_view/renderer/partial_renderer.rb
View
3 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.
@atambo
atambo added a note Jan 31, 2012

isn't it to_partial_path?

@josevalim
Ruby on Rails member
josevalim added a note Jan 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
#
# # @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.
Something went wrong with that request. Please try again.