In devise, many of the pages that teach how to accomplish certain things require editing a sessions controller. I set up devise using this https://github.com/fortuity/rails3
Create your Sessions Controller with rails g controller MySessions
. Then inside of your controller change it from inheriting from ApplicationController
to the Devise Controller like so:
class MySessionsController < Devise::SessionsController
#your session logic here
end
Any of the logic within that controller that you want to override you can override by calling that method and inserting your own logic. For the list of what's in that controller, you can view the code on their Github page. If you do not wish to override their methods you can either leave them out, or just call super.
def new
super
end