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

Error when rake fill:data #6

Closed
moifouss opened this issue Sep 11, 2015 · 6 comments
Closed

Error when rake fill:data #6

moifouss opened this issue Sep 11, 2015 · 6 comments

Comments

@moifouss
Copy link

C:\Sites\socify>rake fill:data

Erasing existing data

rake aborted!
NoMethodError: undefined method auto_html_for' for Post (call 'Post.connection' to establish a connection):Class C:/Sites/socify/app/models/post.rb:23:inclass:Post'
C:/Sites/socify/app/models/post.rb:5:in <top (required)>' C:/Sites/socify/lib/tasks/populate.rake:9:inblock (2 levels) in <top (required)>'
Tasks: TOP => fill:data
(See full trace by running task with --trace)

@nezirz
Copy link

nezirz commented Sep 11, 2015

@moifouss
Copy link
Author

I installed auto_html but the error is still there

C:\Sites\socify>gem list auto_html
*** LOCAL GEMS ***
auto_html (1.6.4, 1.6.0)

@nezirz
Copy link

nezirz commented Sep 11, 2015

tried restart?

@moifouss
Copy link
Author

Yes, I restarted the server

@scaffeinate
Copy link
Owner

@moifouss Check the version of auto_html in Gemfile.lock

@moifouss
Copy link
Author

I added gem 'auto_html','~>1.6.4' to my gem file and did bundle and "rake fill:data" and hop!
Everything is ok now.
It was not easy making that run on windows but I'm very happy (As I'm new to RoR) to make that work.
Thanks for all

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

3 participants