RAILS: configuring authlogic authentication gem on Rails 3

Using Rails 3.
This is the most straightforward article on configuring authlogic on Rails 3: http://www.dixis.com/?p=352
There’s only one minor change I had to do, changing this (in ApplicationController):

def store_location
  session[:return_to] = request.request_uri
end

To this:

def store_location
  session[:return_to] = request.fullpath
end

Thanks to:

http://www.dixis.com/?p=352

http://iterat.ive.ly/index.php/2010/09/03/upgrading-your-authlogic-gem-for-rails3/

This entry was posted in configuration, programming and tagged , , . Bookmark the permalink.

Leave a comment