当我把:method => :在link_to中删除我收到语法错误,我不明白为什么。 这是代码:
<%= link_to application_path(application), :method => :delete, :confirm => 'Are you sure?', :title => 'Delete task', :class => "color-red" do %>
<span class="glyphicon glyphicon-trash">
<% end %>