diff options
author | Alexey Vakhov <vakhov@gmail.com> | 2011-11-06 11:46:28 +0400 |
---|---|---|
committer | Alexey Vakhov <vakhov@gmail.com> | 2011-11-06 11:46:28 +0400 |
commit | 949b3e743f9a2ff5935bb32a247d5df70586886a (patch) | |
tree | 96c588ec72e71b31c35a2bb19464e019625dfd1e /actionpack/lib/action_view/helpers | |
parent | fdbc4e5f4e5746ebf558485348c841b33f038fda (diff) | |
download | rails-949b3e743f9a2ff5935bb32a247d5df70586886a.tar.gz rails-949b3e743f9a2ff5935bb32a247d5df70586886a.tar.bz2 rails-949b3e743f9a2ff5935bb32a247d5df70586886a.zip |
Docs cosmetic fixes in Action View form_helper.rb
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 5c10b67586..f148ffbd73 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -649,7 +649,7 @@ module ActionView # # => <label for="post_privacy_public">Public Post</label> # # label(:post, :terms) do - # 'Accept <a href="/terms">Terms</a>.' + # 'Accept <a href="/terms">Terms</a>.'.html_safe # end def label(object_name, method, content_or_options = nil, options = nil, &block) content_is_options = content_or_options.is_a?(Hash) @@ -738,7 +738,7 @@ module ActionView # # => <input type="file" id="user_avatar" name="user[avatar]" /> # # file_field(:post, :attached, :accept => 'text/html') - # # => <input type="file" id="post_attached" name="post[attached]" /> + # # => <input accept="text/html" type="file" id="post_attached" name="post[attached]" /> # # file_field(:attachment, :file, :class => 'file_input') # # => <input type="file" id="attachment_file" name="attachment[file]" class="file_input" /> |