Plugin to provide theme support for Rails applications.
Add to your
gem 'themes', :git => 'https://github.com/fesplugas/rails-themes.git'
It expects the following folder structure.
You specify which theme to use in your controller by using
class ApplicationController < ActionController::Base theme "theme_name" end
You can also defer the theme lookup to a controller method:
class ApplicationController < ActionController::Base theme :set_theme def set_theme request.domain end end
Copyright © 2010 Francesc Esplugas, released under the MIT license