RubyFlow The Ruby and Rails community linklog

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.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in