使用on_the_spot gem立即注销用户

时间:2011-10-14 13:39:38

标签: ruby-on-rails ruby-on-rails-3 devise

我终于在我的rails app中使用了on_the_spot gem,它使用devise进行身份验证。

但是,当用户登录时,在用户“显示”页面上进行编辑会导致在更改(并保存)后立即注销。我的猜测是这与routes.rb有关吗?

  get "users/index"

  get "users/show"

  devise_for :users, :controllers => { :registrations => :registrations }
  devise_for :users
  resources :users
  root :to => "home#index"

  match '/:id' => 'users#show'

  resources :users do
    collection do
      post :update_attribute_on_the_spot
    end
  end

这有什么明显的错误会导致我的问题吗?或者我应该在别处寻找?我正在使用Rails 3.0.10和最新版本的Devise / on_the_spot。

非常感谢!

0 个答案:

没有答案