RubyFlow The Ruby and Rails community linklog

Seed Fu: Simpler Seed Data for Rails

Seed Fu is a new Rails plugin that provides a simplified syntax for creating and maintaining “seed data,” the pre-loaded data necessary to run an application.

Comments

I could see using this with Faker.

Is this really just a replacement for fixtures? It seems to do the same thing, just using Ruby syntax rather than YAML.

I’m thinking about Faker for demo purposes of course.

It’s not a replacement for fixtures because fixtures are brittle - they can’t be adapted over time, be programatically generated or intelligent, or be constrained by anything other than an id. You could add seeded data with Seed Fu months after you’re already in production without causing a hiccup.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in