Skip to content

How to: Upload remote image urls to your seedfile

reubenbrown edited this page Jan 14, 2015 · 1 revision

If you're looking to quickly generate some seed data for your application and don't want to upload images already stored in your application you can easily upload remote images by using remote_[your_image_attribute_name]_url

Galaxy.destroy_all
Galaxy.create!(name: 'Andromeda', remote_photo_url: 'http://apod.nasa.gov/apod/image/1407/m31_bers_960.jpg', address: 'next to the Milky Way')
Clone this wiki locally