Module: ThemeSupport::RoutingExtensions

Defined in:
lib/theme_support/patches/routeset_ex.rb

Instance Method Summary collapse

Instance Method Details

#themeingObject



3
4
5
6
7
8
9
10
# File 'lib/theme_support/patches/routeset_ex.rb', line 3

def themeing
  @set.with_options :controller => 'themesupport' do |theme|
    match '/themes/:theme/images/*filename', :to => 'themesupport#images', :as => 'theme_images'
    match '/themes/:theme/stylesheets/*filename', :to => 'themesupport#stylesheets', :as => 'theme_stylesheets'
    match '/themes/:theme/javascripts/*filename', :to => 'themesupport#javascript', :as => 'theme_javascript'
    match '/themes/*whatever', :to => 'themesupport#error'
  end
end