Rails 3 and AuthLogic NameError: undefined local variable or method `activate_authlogic’ for

This post is a reminder to myself mostly. If you’re getting the following error when using Ruby on Rails 3 with AuthLogic:

NameError: undefined local variable or method `activate_authlogic' for

Then you need to edit your test_helper.rb to include AuthLogic:

require 'authlogic/test_case'
class ActiveSupport::TestCase
  # ...
  include Authlogic::TestCase
  # ...
end
This entry was posted in Programming, Rails, Ruby. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>