1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/guides/code/getting_started/app/views/comments/_comment.html.erb
Carlos Galdino fb8a830a32 Remove :confirm in favor of :data => { :confirm => 'Text' } option
This applies to the following helpers:
`button_to`
`button_tag`
`image_submit_tag`
`link_to`
`submit_tag`
2012-07-18 10:32:17 -03:00

15 lines
288 B
Text

<p>
<strong>Commenter:</strong>
<%= comment.commenter %>
</p>
<p>
<strong>Comment:</strong>
<%= comment.body %>
</p>
<p>
<%= link_to 'Destroy Comment', [comment.post, comment],
:method => :delete,
:data => { :confirm => 'Are you sure?' } %>
</p>