Module: ThemeSupport::RoutingExtensions
- Defined in:
- lib/theme_support/patches/routeset_ex.rb
Instance Method Summary collapse
Instance Method Details
#themeing ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/theme_support/patches/routeset_ex.rb', line 3 def themeing @set. :controller => 'theme' do |theme| match '/themes/:theme/images/*filename', :to => 'theme#images', :as => 'theme_images' match '/themes/:theme/stylesheets/*filename', :to => 'theme#stylesheets', :as => 'theme_stylesheets' match '/themes/:theme/javascripts/*filename', :to => 'theme#javascript', :as => 'theme_javascript' match '/themes/*whatever', :to => 'theme#error' end end |