Sha256: 26e1154f83a395bcba744d515d2adee1e571c54a37cf401b7b467f7e280e27fe

Contents?: true

Size: 866 Bytes

Versions: 15

Compression:

Stored size: 866 Bytes

Contents

ActionController::Routing::Routes.draw do |map|
  map.filter(:locale)

  # NB: Engine routes are loaded FIRST from Rails v2.3 onward.
  # These routes are contained within vendor/plugins/engine_name/config/routes.rb

  # The priority is based upon order of creation: first created -> highest priority.
  map.root :controller => "pages", :action => "home"

  map.namespace(:admin, :path_prefix => 'refinery') do |admin|
    admin.root :controller => 'dashboard', :action => 'index'
  end

  # Install the default routes as the lowest priority.
  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'


  map.redirect 'admin/*path', :controller => 'admin/base'
  map.connect 'refinery/*path', :controller => 'admin/base', :action => 'error_404'

  # Marketable URLs
  map.connect '*path', :controller => 'pages', :action => 'show'

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
refinerycms-0.9.7.15 config/routes.rb
refinerycms-0.9.7.14 config/routes.rb
refinerycms-0.9.7.13 config/routes.rb
refinerycms-0.9.7.11 config/routes.rb
refinerycms-0.9.7.10 config/routes.rb
refinerycms-0.9.7.9 config/routes.rb
refinerycms-0.9.7.8 config/routes.rb
refinerycms-0.9.7.7 config/routes.rb
refinerycms-0.9.7.6 config/routes.rb
refinerycms-0.9.7.5 config/routes.rb
refinerycms-0.9.7.4 config/routes.rb
refinerycms-0.9.7.3 config/routes.rb
refinerycms-0.9.7.2 config/routes.rb
refinerycms-0.9.7.1 config/routes.rb
refinerycms-0.9.7 config/routes.rb