scaffeinate / socify

:rocket: Socify is an open source social networking platform written in Ruby on Rails
http://socifyapp.herokuapp.com
GNU General Public License v2.0
375 stars 211 forks source link

Error when rake fill:data #6

Closed moifouss closed 8 years ago

moifouss commented 8 years ago

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 commented 8 years ago

https://github.com/dejan/auto_html/issues/140 or https://github.com/dejan/auto_html/issues/8

moifouss commented 8 years ago

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 commented 8 years ago

tried restart?

moifouss commented 8 years ago

Yes, I restarted the server

scaffeinate commented 8 years ago

@moifouss Check the version of auto_html in Gemfile.lock

moifouss commented 8 years ago

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