Skip to content

Instantly share code, notes, and snippets.

@stephen-puiszis
Created April 24, 2013 16:07
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 stephen-puiszis/5453334 to your computer and use it in GitHub Desktop.
Save stephen-puiszis/5453334 to your computer and use it in GitHub Desktop.
Seed file for skeleton apps (Shaq GIFs)
pictures = [
{ :url => "http://i.cdn.turner.com/dr/teg/coco/release/sites/default/files/0229_ShaqRoar.gif", :name => "Shaq", :caption => "Shaq is going to eat Conan" },
{ :url => "http://i.imgur.com/AvKuM6i.gif", :name => "Shaq being Shaq", :caption => "Awesome" },
{ :url => "http://instntrply.com/wp-content/uploads/2011/12/shaqtree.gif", :name => "Christmas Tree", :caption => "TNT" },
]
pictures.each do |pic|
p = Picture.new
p.name = pic[:name]
p.url = pic[:url]
p.caption = pic[:caption]
p.save
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment