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

NoMethodError (undefined method `current_user' for #<MyController...>) #8

Open
Arthaey opened this issue Aug 31, 2012 · 1 comment
Open

Comments

@Arthaey
Copy link

Arthaey commented Aug 31, 2012

In application.rb, I define a "current_user" method, which is necessary for how I do authentication (SimplestAuth) & authorization (declarative_authorization).

When I add cashier to my Gemfile and run bundle install, suddenly I start getting 500's and a NoMethodError for current_user. Reverting the Gemfile and removing the vendored cashier gem — and making no other changes — makes the NoMethodError go away again.

@joeytheman
Copy link

I am experiencing the same issue with random NameError or NoMethodError errors for methods that run in a before_filter after installing the Cashier gem. I am using Rails 3.2.6 and Ruby 1.9.3.

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