Created
January 20, 2012 08:08
-
-
Save bicepjai/1646075 to your computer and use it in GitHub Desktop.
link_to :method delete css :class issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= link_to "delete me", :confirm => "Are you sure?", :method => 'delete', :class => "btn danger" %> | |
<%= link_to "edit me", edit_user_path,:confirm => "Are you sure?", :class => "btn info" %> | |
getting rendered as | |
<a href="/users/1?class=btn+danger&confirm=Are+you+sure%3F&method=delete">delete me</a> | |
<a href="/users/1/edit" class="btn info" data-confirm="Are you sure?">edit me</a> | |
using twitter bootstrap, class "btn danger" is not getting applied. | |
help? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
: rake routes doesn't show any path for delete method, tats y I'm using :method=>"delete"