RubyFlow The Ruby and Rails community linklog


The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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