sass generated css not working with stylesheet_link_tag :all

451 views
Skip to first unread message

Evgeny

unread,
Apr 16, 2008, 12:13:57 PM4/16/08
to Haml
I'm using Rails 2.0.2, and Haml 1.8.2

and have this line in my application layout:
= stylesheet_link_tag :all, :cache => true

According to Rails docs it's supposed to chunk all the css into one
single file in production, but generate several lines (one for each
css) in development mode of Rails. All very cool :)

Thing is, it does not work. The sass->css conversion takes place, and
the css files are generated. But they are not inserted into the
rendered pages. Other css files that are not sass generated are
working correctly. Well, I figure I'll just refresh the page - and the
second time a request comes in Rails will just see the new css files
and grab them. But it does not work, I keep seeing the single non-sass
css file I have in public/stylesheets.

Evgeny

unread,
Apr 16, 2008, 12:23:32 PM4/16/08
to Haml
Hmm, looks like "rake tmp:cache:clear" fixed it.
Something is getting cached somewhere, I just don't know what :)
Reply all
Reply to author
Forward
0 new messages