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 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -