Plugins - Theme support
Add to favoritesThis plugin provides support for themes to the rails application environment. It supports theme specific images, stylesheets, javascripts, and views. The views can be in ERb (rhtml) or liquid formats. Optionally, you can configure the theme system to ignore any templates except liquid ones.

Damien - Thanks for the articles on how to keep this plugin running with newer versions of rails. Its been a big help for me and I appreciate it!
I have writtent an article on how to install this plugin with Rails 2.0.
It is available on my blog: http://www.webdrivenblog.com/2008/1/9/installing-the-theme-support-plugin-for-rails-2-0
I have writtent an article on how to install this plugin with Rails 1.2.
It is available on my blog: http://www.webdrivenblog.com/2007/11/27/installing-the-theme-support-plugin-with-rails-1-2
With rails 1.2.3 don't work
Any suggest?
This plugin did not previously support explicit file extensions. I have created a patch and submitted it to Matt McCray. In the meantime if you need it please contact me and I will send it to you (it also includes the well-discussed routing fix that was floating around).
for Rails 1.2 I've emptied routesetex.rb and copy all the namedroutes lines in my routes.rb file, and replacing it by map.connect :
theme_support
map.connect "/themes/:theme/images/*filename", :controller=>'theme', :action=>'images' map.connect "/themes/:theme/stylesheets/*filename", :controller=>'theme', :action=>'stylesheets' map.connect "/themes/:theme/javascript/*filename", :controller=>'theme', :action=>'javascript'
map.connect "/themes/*whatever", :controller=>'theme', :action=>'error'
and it works well
As of 2006-12-10, this plugin does not work with Rails 1.2.
The patches applied by the plugin to add themes to the RouteSet and search for theme Views do not jive with Rails 1.2. I've tried to re-build those patches, but it's more than a quick fix.