Created
November 5, 2010 16:08
-
-
Save matheusca/664366 to your computer and use it in GitHub Desktop.
Troubleshoot
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
ree-1.8.7-2010.02 > s = Site.last | |
=> #<Site _id: 4cd42b3f9b55d827de000005, theme: "default", site: "localhost"> | |
ree-1.8.7-2010.02 > s.midias.create(:image => my_file, :kind => 'teste') | |
=> #<Midia _id: 4cd42b779b55d827de000006, kind: "teste", image_filename: "wallpaper_bruno.png", image: nil> | |
ree-1.8.7-2010.02 > s.save | |
=> true | |
ree-1.8.7-2010.02 > Site.last.midias | |
=> [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment