Permalink
Browse files

Merge pull request #6154 from shaliko/patch-1

Update documentation for button_to.
  • Loading branch information...
2 parents 319db7b + 42eda20 commit db93c1c1257864763d12e94f17891d70357fd11e @vijaydev vijaydev committed May 4, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 actionpack/lib/action_view/helpers/url_helper.rb
@@ -303,7 +303,10 @@ def link_to(*args, &block)
#
# <%= button_to "Create", :action => "create", :remote => true, :form => { "data-type" => "json" } %>
# # => "<form method="post" action="/images/create" class="button_to" data-remote="true" data-type="json">
- # # <div><input value="Create" type="submit" /></div>
+ # # <div>
+ # # <input value="Create" type="submit" />
+ # # <input name="authenticity_token" type="hidden" value="10f2163b45388899ad4d5ae948988266befcb6c3d1b2451cf657a0c293d605a6"/>
+ # # </div>
# # </form>"
#
#
@@ -313,6 +316,7 @@ def link_to(*args, &block)
# # <div>
# # <input type="hidden" name="_method" value="delete" />
# # <input data-confirm='Are you sure?' value="Delete" type="submit" />
+ # # <input name="authenticity_token" type="hidden" value="10f2163b45388899ad4d5ae948988266befcb6c3d1b2451cf657a0c293d605a6"/>
# # </div>
# # </form>"
#
@@ -323,6 +327,7 @@ def link_to(*args, &block)
# # <div>
# # <input name='_method' value='delete' type='hidden' />
# # <input value='Destroy' type='submit' disable_with='loading...' data-confirm='Are you sure?' />
+ # # <input name="authenticity_token" type="hidden" value="10f2163b45388899ad4d5ae948988266befcb6c3d1b2451cf657a0c293d605a6"/>
# # </div>
# # </form>"
# #

0 comments on commit db93c1c

Please sign in to comment.