在rails中的link_to中传递方法参数时出现语法错误

时间:2015-03-24 21:37:53

标签: ruby-on-rails link-to

当我把: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 %>

0 个答案:

没有答案