The Artima Developer Community
Sponsored Link •

Ruby Buzz Forum
Authlogic and Rails 3.0pre

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Amos King

Posts: 78
Nickname: adkron
Registered: Jan, 2007

Amos King is a Web Developer for the US Postal Service and for Ramped Media.
Authlogic and Rails 3.0pre Posted: Jul 8, 2009 10:01 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Amos King.
Original Post: Authlogic and Rails 3.0pre
Feed Title: DirtyInformation
Feed URL: http://feeds.feedburner.com/Dirtyinformation
Feed Description: Information about Ruby/Rails/JRuby/WebDevelpoment/whatever.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Amos King
Latest Posts From DirtyInformation

Advertisement

With some of the moving around of code in Rails 3 Authlogic is broken. This is a quick fix, and not the solution. Add the following to your Session class:

class UserSession < Authlogic::Session::Base
  def self.model_name
    ActiveModel::Name.new(self.to_s)
  end
end

You should be good to go. I have to read up on the process for patching authlogic. Right now it is late and I am sick. I hope this quick fix gets someone going.

Read: Authlogic and Rails 3.0pre

Topic: How Ruby Mixins Work With Inheritance Previous Topic   Next Topic Topic: Swingin' Safari

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use