0
我正在使用rails 3.2并为移动应用程序使用jquery mobile和handlebar。我正在尝试使用API调用编写注销功能。在Rails API调用中设计注销
在我的lib/extras/api/users.rb 我正在尝试做devise的注销功能。
如何写
现在我写的像
resource :users do
delete '/sign_out' do
authenticate!
user = User.find(params[:id]) rescue not_found
# What to write here to signout the user
end
end