ruby on rails - Dynamically add created images to asset pipeline -
i have rails app creates images in controller phantomjs using
system("/usr/bin/phantomjs ./app/assets/javascripts/phantom_snapshot.js http://urltopagewhereimgcomesfrom/ ./app/assets/images/newimage.png '#divid'&")
now want integrate image in view, think because of assets:precompile image not yet available. correct location put images anyway? or there way dynamically add created image assets?
any appreciated.
static assets not precompiled go in ./public
folder.
just make sure have static asset serving turned on in environment
config.serve_static_assets = true