Skip to content

Instantly share code, notes, and snippets.

@runemadsen
Created April 12, 2011 19:36
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 runemadsen/916218 to your computer and use it in GitHub Desktop.
Save runemadsen/916218 to your computer and use it in GitHub Desktop.
require 'index.rb'
User.create(:name => "Rune")
d = Discussion.create(:date => Date.today)
d.image = Image.create(:url => 'http://inapcache.boston.com/universal/site_graphics/blogs/bigpicture/libya_032111/bp4.jpg', :user_id => 1)
d.image.images.create(:url => 'http://t0.gstatic.com/images?q=tbn:ANd9GcSUYGIZP5MiGjHqWNahu5aYBNwhC0iy276E-5swmXPu3WhXKb4b-g', :user_id => 1)
d.image.images.first.images.create(:url => 'http://t0.gstatic.com/images?q=tbn:ANd9GcR8WZcROnNwdDKaSSIdTja_LyefN8AhJA0mTUaOeNQmPAOFhTUA', :user_id => 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment