Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Theme Support for Rails 3
Ruby JavaScript
Latest commit a7aeb65 @lucasefe Merge pull request #66 from negarnil/master
Fix Ruby 1.9 "can't convert Pathname to String (TypeError)" error
Failed to load latest commit information.
doc Cleaning documentation up.
test Big changes on configuration. See readme.
.gitignore Releasing 0.5.1 in order to restore support for ruby 1.8. thanks to m…
.rspec Passing tests. Still some work left to do.
.travis.yml Adding travis config file.
Gemfile Removing jeweler as dependency. Building gem spec by hand.
Gemfile.lock Releasing 0.5.1 in order to restore support for ruby 1.8. thanks to m…
LICENSE Falling back to version 0.4.x, because making it compatible with the …
README.textile Adding reference to old readme mfile.
Rakefile Moving files around. Changing some names. Trying to make it consistent.
themes_for_rails.gemspec softing dependencies.


Theme For Rails (3 and hopefully later)

Features list

  • Support for adding themes which includes stylesheets, javascripts, views and layouts.
  • add a theme-image-url sass helper method for asset pipeline based themes
  • update the generators and rake tasks to support asset pipeline based themes
  • (NEW) works with the Rails Assets Pipeline without interfering, and leveraging it.


This gem works with Rails from version 3.0 to at least 3.2.1 (current at the moment of writing this readme file).


Ideas / Inspiration

  • Add ThemesForRails::Railtie for configuration, so we selectively set the plugin on or off. Also to be able to change several settings.
  • Add routes to allow access to the theme’s static resources (js and cs), unless cached on public folder by capistrano / rake.
  • Extend Action View path in order to make the views accessible. Same for the layouts.
  • More tests ford edge cases. Now I am only testing the happy paths.

Rails 2 Support

This gem only works with Rails 3 (duh). If you want the same exactly behavior, but for Rails 2.x, go here .

Running tests

gem install bundler
bundle install

Authors and contributors

  • lucasefe
  • jedifreeman
  • jbarreneche
  • kule
  • matheusmoreira
  • rafaelss
  • maxjgon

Last but not least

If you are using this gem, please, take a minute to recommend me at Working With Rails.

Recommend Me

Something went wrong with that request. Please try again.