plataformatec/devise — Issue #1407: redirecting to sign_in form when performing destroy action on any controllers
Author: satish-ror
Created: 2011-10-29 22:09:13+00:00
State: open

my application routes are:

devise_for :users, :controllers => { :registrations => "users/registrations", :sessions=>'users/sessions',
:omniauth_callbacks => "users/omniauth_callbacks" }, :path => "accounts"

devise_scope :user do
match '/users/sign_out' => 'users/sessions#destroy'
match '/users/auth/:provider' => 'users/omniauth_callbacks#passthru'
end

resources :users do
resources :pictures
end

When trying to delete the picture from the browser, its redirecting to sign_in form. I don't understand what is the problem here. Please help me.

Thanks