0

那是有效的原始设计注销链接: link_to("Logout", destroy_user_session_path, :method => :delete)

因为和我不得不切换到这种链接。现在的问题是链接尝试找到用户sign_out

试过:

  <%= link_to (destroy_user_session_path, :method => :delete) do %>
      <i class="icon-off"></i> Logout</span>
  <% end %>

  <%= link_to (destroy_user_session_path, method => :delete) do %>
      <i class="icon-off"></i> Logout</span>
  <% end %>

  <%= link_to (destroy_user_session_path, :method = 'delete') do %>
      <i class="icon-off"></i> Logout</span>
  <% end %>

有什么想法或建议吗?

4

1 回答 1

0

我会做,

<span>
  <i class="icon-off">
  </i> 
  <%= link_to("Logout",destroy_user_session_path, :method => :delete)%>
</span>
于 2013-08-27T18:33:46.853 回答