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 -

unity3d - Unity SceneManager.LoadScene quits application -

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