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

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

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -