I had a problem when I tried to upgrade from Rails 3.0 + Jammit to
Rails 3.1 Asset Pipeline. I created app/assets folder, under it I have
both javascripts/application.js.coffee and stylesheets/
application.css.scss. I included both using stylesheet_link_tag and
javascript_include_tag, but it just could not load the CSS correctly.
The application keeps trying to load css from /stylesheets/
application.css which is a 404 error (the js loads fine from assets/
application.js). I am using the latest rails 3.1.1 and other
libraries. So what is the problem here?
I am simply just to test out the new asset pipeline. As I said the
application has no problem to load application.js, but it just cannot
find the correct location of application.js (keeps loading /
stylesheets/application.css instead of /assets/application.css)
+1 to this problem. I updated from 3.0.0 followed the instructions on
the rails guides page for updating and have the exact same issue. I
tried discussing it in a ticket but have not herd anything back. Did
you find a fix for this?
Today I tried to replace jammit with asset pipeline in 3.1 again. This
time I got much further, the app could server JS and images correctly
from assets/ folder.
But I was not able to make the CSS right. I used stylesheet_link_tag,
but it kept serving CSS from /stylesheets/ instead of /assets/. Anyone
has an idea about this problem?