Sha256: b9711acff9b93bf8d85c3676934eb66442ddd45a6efe6cffca9d66d12d2a21f2
Contents?: true
Size: 553 Bytes
Versions: 7
Compression:
Stored size: 553 Bytes
Contents
ActionController::Routing::Routes.draw do |map| map.namespace(:admin) do |admin| admin.resources :themes, :member => {:preview_image => :get, :activate => :get} end # allows theme files that are not in the Rails public directory to be served back to the client map.connect 'theme/stylesheets/*filepath', :controller => 'themes', :action => 'stylesheets' map.connect 'theme/javascripts/*filepath', :controller => 'themes', :action => 'javascripts' map.connect 'theme/images/*filepath', :controller => 'themes', :action => 'images' end
Version data entries
7 entries across 7 versions & 1 rubygems