Topic: stylesheet not found in Rails app

I'm following the tutorial from the book Ruby on Rails 3 Tutorial.  It asks me to add a stylesheet in app/views/layouts/application.html.erb by using this line:

<%= stylesheet_link_tag 'test', :media => 'screen' %>

Now when I look at the source code of the rendered page I see this:

<link href="/assets/test.css" media="screen" rel="stylesheet" type="text/css" />

I have my test.css file in public/stylesheets.

I have no idea where the folder /assets comes from.


Re: stylesheet not found in Rails app

It's the assets pipeline , which is enabled by default in Rails 3.1 and up


config.assets.enabled = false

in config/application.rb

Joe got a job, on the day shift, at the Utility Muffin Research Kitchen, arrogantly twisting the sterile canvas snout of a fully charged icing anointment utensil.