Rails Asset Pipeline: Getting raw data in production -


this works in development:

raw rails.application.assets['path'].to_s 

but in production throws following error:

undefined method `[]' nil:nilclass

all assets have been precompiled.


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

ios - MKAnnotationView layer is not of expected type: MKLayer -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -