提交 7dea4b57 编写于 作者: J Jon Leighton

Merge branch 'master' of github.com:rails/rails

...@@ -610,10 +610,11 @@ def fields_for(record, record_object = nil, options = {}, &block) ...@@ -610,10 +610,11 @@ def fields_for(record, record_object = nil, options = {}, &block)
# label(:post, :body) # label(:post, :body)
# # => <label for="post_body">Write your entire text here</label> # # => <label for="post_body">Write your entire text here</label>
# #
# Localization can also be based purely on the translation of the attribute-name like this: # Localization can also be based purely on the translation of the attribute-name
# (if you are using ActiveRecord):
# #
# activemodel: # activerecord:
# attribute: # attributes:
# post: # post:
# cost: "Total cost" # cost: "Total cost"
# #
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册