提交 9a76e1f9 编写于 作者: J José Valim

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

上级 98e1735d
......@@ -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.
#
# # @account.to_partial_path returns 'accounts/account', so it can be used to replace:
# # <%= render :partial => "accounts/account", :locals => { :account => @account} %>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册