I would think you can do this with seed data OR just have one of your migration files add the categories like
%w(cat1 cat2 cat3 cat4).each do |cat| Category.create(:name => cat) end Normally for production this is only done once then it stays in the db for each deployment after that. It almost sounds like you clear the db when you deploy is that correct? Is this for a test server or development? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

