Permalink
Browse files

Updated documentation for block helpers in form_tag_helper.rb

  • Loading branch information...
1 parent a098720 commit 67de0af60485b4da45d015e9a1dfad5439d5fca2 @jeroenvandijk jeroenvandijk committed Mar 12, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -32,12 +32,12 @@ module FormTagHelper
# form_tag('/upload', :multipart => true)
# # => <form action="/upload" method="post" enctype="multipart/form-data">
#
- # <% form_tag('/posts')do -%>
+ # <%= form_tag('/posts')do -%>
# <div><%= submit_tag 'Save' %></div>
# <% end -%>
# # => <form action="/posts" method="post"><div><input type="submit" name="submit" value="Save" /></div></form>
#
- # <% form_tag('/posts', :remote => true) %>
+ # <%= form_tag('/posts', :remote => true) %>
# # => <form action="/posts" method="post" data-remote="true">
#
def form_tag(url_for_options = {}, options = {}, *parameters_for_url, &block)
@@ -425,17 +425,17 @@ def image_submit_tag(source, options = {})
# <tt>options</tt> accept the same values as tag.
#
# ==== Examples
- # <% field_set_tag do %>
+ # <%= field_set_tag do %>
# <p><%= text_field_tag 'name' %></p>
# <% end %>
# # => <fieldset><p><input id="name" name="name" type="text" /></p></fieldset>
#
- # <% field_set_tag 'Your details' do %>
+ # <%= field_set_tag 'Your details' do %>
# <p><%= text_field_tag 'name' %></p>
# <% end %>
# # => <fieldset><legend>Your details</legend><p><input id="name" name="name" type="text" /></p></fieldset>
#
- # <% field_set_tag nil, :class => 'format' do %>
+ # <%= field_set_tag nil, :class => 'format' do %>
# <p><%= text_field_tag 'name' %></p>
# <% end %>
# # => <fieldset class="format"><p><input id="name" name="name" type="text" /></p></fieldset>

0 comments on commit 67de0af

Please sign in to comment.