RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

Controller-specific assets with Rails 4

Link to Article

I recently found that despite appearances, all your controller-specific asset files (i.e. assets generated with "rails g controller blah") are actually loaded into every page.

This post explains how to change this behaviour and get the assets loading where you expect.

Comments

Post a Comment

Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!