My custom Devise Sessions controller isn't letting me sign in. I've had several difficulties trying to customize the Devise controllers, but I can't figure out what's going on here.
When I try to sign in, the page (sessions#new) simply re-renders. How can I get my custom controller back to 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.
application.html.erbbecause if credentials are invalid then devise sets the error message in flash. - Kirti Thorat♦