Question

I am learning ruby on rails 4 and I came across what initially appeared a perfect alternative for seeding data, seed_fu. It seems way more readable to me. When I went to check it out at github it stated, "The current latest version isn't compatible with Rails 4.0. You will have to use the HEAD of this repo.

gem 'seed-fu', github: 'mbleigh/seed-fu'"

The quoted part seemed to say no I cannot use it, then came the second part, I will have to use the HEAD of the repo. I am still getting used to the concept of installing gems. Does this mean I can use it or not? If I can install it, have you used seed_fu with Rails4? Did it cause any problems?

I would appreciate some guidance.

Was it helpful?

Solution

You can certainly use it with rails 4, provided you specify an additional (github) attribute, so bundler knows where to fetch the gem from. In this case, it will get it from github as opposed to rubygems. Rails 4 version of this gem is probably under development and not yet released, hence you need to get it from github.

Just go to your Gemfile and copy paste that line as it is, run bundle install and you are done.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top