Amazon

Thursday, February 21, 2008

Tidy Stylesheets in Rails

I came across this blog entry on how to organize stylesheets in Rails. At first I was skeptical, but soon ran into a situation where Peter's suggestion really works well. I had to adapt a few things so that it works with Rails 2.0.x. But overall, I am sold!

2 comments:

Ahmed said...

What exactly did you have to change in the code to get it working for rails 2.1? I can't seem to get the stylesheets to load from the /public/stylesheets/#{controller_name}/#{action_name} directory. Any feedback would be appreciated.

saltybanana said...

Ahmed,

Please take a look at this blog entry. Thanks for reading.