那是有效的原始设计注销链接:
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 %>
有什么想法或建议吗?