我有这条路线:
scope :module => :mobile, :as => :mobile do
constraints(:subdomain => /m/) do
devise_for :users, :path => "", :path_names =>
{ :sign_in => "login", :sign_out => "logout",
:sign_up => "signup" },
:controllers => {:sessions => "mobile/sessions"}
...
所以我想这将是我注销的链接:
=link_to("Log Out", logout_url)
但这给出了错误:
undefined local variable or method `logout_url' for #<#<Class:0x134881e88>:0x134879a08>
知道如何让链接正确指向吗?
谢谢!