Created
April 24, 2013 16:07
-
-
Save stephen-puiszis/5453334 to your computer and use it in GitHub Desktop.
Seed file for skeleton apps (Shaq GIFs)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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