I use the client part of the yml configuration file, configuration, which I also need to load on the server side, I placed it inside app / assets / javascripts / configuration.yml
I can use # {asset_path 'configuration.yml'} inside the view to get the path, but I cannot enter the controller. I could access it directly using "# Rails.root" /app/assets/javascripts/configuration.yml ", but when the file name is expanded, a digest line is added.
How can I get the same path from the controller?
Marcel M. Oct. 19 '11 at 19:36 2011-10-19 19:36
source share