ruby on rails - Custom Devise: Sessions Controller Failure -


my custom devise sessions controller isn't letting me sign in. i've had several difficulties trying customize devise controllers, can't figure out what's going on here.

when try sign in, page (sessions#new) re-renders. how can custom controller full functionality?

# controllers/sessions_controller  class sessionscontroller < devise::sessionscontroller   skip_before_filter :store_last_attempted_location   skip_after_filter  :store_last_successful_location    def new     super   end    def create     super   end    def destroy     super   end end 

my routes

#config/routes.rb  devise_for :users, :controllers => { :sessions => "sessions", :registrations => "registrations"  } 

thanks in advance.

if sign in page re-rendered after entering user credentials means credentials invalid resulting in re-rendering. should have resulted in flash message on re-rendered page devise uses flash messages let application users know if sign in successful or failure.

make sure displaying flash messages in application.html.erb as:

<% flash.each |name, msg| %>   <%= content_tag :div, msg %> <% end %> 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -