Skip to content

Instantly share code, notes, and snippets.

@jtadeulopes
Created June 13, 2009 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtadeulopes/129337 to your computer and use it in GitHub Desktop.
Save jtadeulopes/129337 to your computer and use it in GitHub Desktop.
>> require 'populator'
=> []
>> Category.count
=> 0
>> Category.populate(10) { |category| category.name = Populator.words(1..3).titleize }
=> {}
>> Category.count
=> 10
>> Category.first
=> #<Category id: 1, name: "Fuga Debitis Temporibus", created_at: "2009-06-13 14:17:24", updated_at: "2009-06-13 14:17:24">
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment