You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Qichunren edited this page May 20, 2019
·
8 revisions
It's easy to "upload" a file programmatically, for test or fixture or seed or scripting purposes.
For instance, do this inside seed.rb to create a Restaurant instance with a CarrierWave logo field from an image you've got stored away in your own db/images directory: