Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem getting to run with Rails 3 #1

Open
rickcr opened this issue Sep 2, 2010 · 1 comment
Open

Problem getting to run with Rails 3 #1

rickcr opened this issue Sep 2, 2010 · 1 comment

Comments

@rickcr
Copy link

rickcr commented Sep 2, 2010

I'm pretty new to Rails so maybe I'm doing stuff wrong, but I'm trying to get this to run using Rails3 and Ruby 1.9.2-preview3.

I've updated the Gemfile to 3.0.0 (removed .beta)

and did bundle install to update things, but after running rake, I end up with a ton of errors that look like:

UserSessionController when no user is authenticated GET 'new' assigns a new user_session as @user_session
 Failure/Error: @mock_user_session ||= mock_model(UserSession, stubs).as_null_object
 The mock_model method can only accept as its first argument:
    A String representing a Class that does not exist
    A String representing a Class that extends ActiveModel::Naming
    A Class that extends ActiveModel::Naming

Thanks for any help.

@borama
Copy link

borama commented Jul 29, 2011

I got this working by manually extending the UserSessions from ActiveModel::Naming :

class UserSession < Authlogic::Session::Base
  extend ActiveModel::Naming
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants