I'm trying to generate default images on my database directly on a migration from images included in my rails app (assets/images).
Before this kind of migration, I tap my command directly on the terminal.
I would like something like that :
File.new('path/to/my/default/avatar')
I tried with ActionController::Base.helpers.asset_path
, asset_path
, Rails.root.join
.
If this way is not at all the good one to do what I want, please let me know the best way. :-)