I have an app/assets/javascripts/moufa.js.erb
file that gets populated with values from a config/moufa.yml
file. I want to use the depend_on
sprockets directive so that every time the yaml file gets changed, it recompiles the js file.
相关问题
- Eager-loading association count with Arel (Rails 3
- Rails simple model attributes not saved to databas
- jquery-ui progressbar not showing
- PDF attachment in email is called 'Noname'
- Is it possible to use redirect_to when it's ca
相关文章
- “No explicit conversion of Symbol into String” for
- Rspec controller error expecting <“index”> but
- Factory_girl has_one relation with validates_prese
- Rails: Twitter Bootstrap Buttons when visited get
- is there a “rails” way to redirect if mobile brows
- Got ActiveRecord::AssociationTypeMismatch on model
- superclass mismatch for class CommentsController (
- Why does Rake task enhancement differ between my l
We were able to solve this by adding a new directive. This directive (put this in config/initializers/sprockets.rb) adds a dependency on a file in the config/ directory: