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 `reportable' #38

Open
twnaing opened this issue Mar 15, 2015 · 2 comments
Open

NoMethodError: undefined method `reportable' #38

twnaing opened this issue Mar 15, 2015 · 2 comments

Comments

@twnaing
Copy link

twnaing commented Mar 15, 2015

I am having the following error with my project using Ruby 2.0, Rails 4.01, Reportable 1.4.2 with SQLite

NoMethodError: undefined method `reportable' for Sale(no database connection)

I'm following everything in README file. Am I doing something wrong totally?

@davestephens
Copy link

You're missing :require => 'saulabs/reportable' from your gemfile, so the code isn't being loaded when your application starts. To get the latest cut of the code (the released gem is ancient), and to fix your issue, use:

gem 'reportable', github: 'saulabs/reportable', :require => 'saulabs/reportable'

@twnaing
Copy link
Author

twnaing commented May 20, 2015

Thank for the reply. I'll try with the code.

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