Skip to content

Instantly share code, notes, and snippets.

@phlegx
Created June 1, 2012 09:53
Show Gist options
  • Save phlegx/2850858 to your computer and use it in GitHub Desktop.
Save phlegx/2850858 to your computer and use it in GitHub Desktop.
## hTML ERB code:
<td><%= link_to 'Destroy', feedback_channel, :confirm => 'Are you sure?', :method => :delete %></td>
## HTML code:
<a rel="nofollow" data-method="delete" data-confirm="Are you sure?" href="/feedback_channels/4">Destroy</a>
## LOG:
Started GET "/feedback_channels/4" for 127.0.0.1 at Fri Jun 01 11:51:20 +0200 2012
Processing by FeedbackChannelsController#show as HTML
Parameters: {"id"=>"4"}
FeedbackChannel Load (0.0ms) SELECT `feedback_channels`.* FROM `feedback_channels` WHERE `feedback_channels`.`id` = 4 LIMIT 1
Rendered feedback_channels/show.html.erb within layouts/application (26.0ms)
Completed 200 OK in 62ms (Views: 38.0ms | ActiveRecord: 0.0ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment