ActionController::Base.helpers.asset_path("configuration.yml")
Might also be good to put configuration.yml in a different folder to separate javascript from non-javascript files.
More Related Contents:
- Rails 3.1 asset pipeline: how to load controller-specific scripts?
- Using Rails 3.1, where do you put your “page specific” JavaScript code?
- How can I disable logging of asset pipeline (sprockets) messages in Ruby on Rails 3.1?
- Rails config.assets.precompile setting to process all CSS and JS files in app/assets
- Error when running rails app – ExecJS::RuntimeError
- Can we call a Controller’s method from a view (as we call from helper ideally)?
- Find number of months between two Dates in Ruby on Rails
- Rails naming convention for join table
- Convert HTML to word file ?
- skip certain validation method in Model
- Rails 3.1 limit user created objects
- Rails: FATAL – Peer authentication failed for user (PG::Error)
- Changing a column type to longer strings in rails
- How to make Devise redirect after confirmation
- WARNING: Can’t verify CSRF token authenticity rails
- What is the easiest way to duplicate an activerecord record?
- How can I avoid running ActiveRecord callbacks?
- Rails 5: Load lib files in production
- How does instance_eval work and why does DHH hate it?
- test a file upload using rspec – rails
- How to query a model based on attribute of another model which belongs to the first model?
- Rails 4: assets not loading in production
- Overriding a module method from a gem in Rails
- First argument in form cannot contain nil or be empty – Rails 4
- Is it possible to refresh partial frequently using Ajax?
- How to URL encode a string in Ruby
- Rails 4 – Gem::LoadError: Specified ‘mysql2’ for database adapter, but the gem is not loaded
- Passing variables inside rails internationalization yml file
- Rails best way to get previous and next active record object
- Rails attachments inline are not shown correctly in gmail