Sha256: 62cd4ac8b3423598cc8ca630e80588a39d033ec182d68e52f2d3071c22f8091f

Contents?: true

Size: 551 Bytes

Versions: 3

Compression:

Stored size: 551 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

3 entries across 3 versions & 1 rubygems

Version Path
refinerycms-0.9.6.5 vendor/plugins/themes/config/routes.rb
refinerycms-0.9.6.4 vendor/plugins/themes/config/routes.rb
refinerycms-0.9.6.3 vendor/plugins/themes/config/routes.rb