Sha256: d644da022dbc789652a379d4162e8b50dd4d52490a09260cdb5eab7f4b14f609
Contents?: true
Size: 1.72 KB
Versions: 1
Compression:
Stored size: 1.72 KB
Contents
Rails.application.routes.draw do # Map admin controllers scope "/#{Humpyard::config.admin_prefix}" do resources :humpyard_pages, :controller => 'humpyard/pages', :path => "pages", :only => [:index, :new, :create, :edit, :update, :show, :destroy] do collection do post :move end end resources :humpyard_elements, :controller => 'humpyard/elements', :path => "elements", :only => [:new, :create, :edit, :update, :show, :destroy] do member do get :inline_edit end collection do post :move end end resources :humpyard_assets, :controller => 'humpyard/assets', :path => "assets", :only => [:index, :new, :create, :edit, :update, :show, :destroy] do end end # Map "/" URL root :to => 'humpyard/pages#show', :webpath => 'index' # Map sitemap.xml match "/sitemap.xml" => 'humpyard/pages#sitemap', :as => 'sitemap' # Map human readable page URLs if Humpyard::config.www_prefix.match /:locale/ match "/#{Humpyard::config.www_prefix}" => 'humpyard/pages#show', :webpath => 'index', :constraints => { :locale => Humpyard.config.locales_contraint } match "/#{Humpyard::config.www_prefix}*webpath.:format" => 'humpyard/pages#show', :constraints => { :locale => Humpyard.config.locales_contraint, :format => Humpyard.config.page_formats_contraint } match "/#{Humpyard::config.www_prefix}*path" => 'humpyard/errors#error404', :constraints => { :locale => Humpyard.config.locales_contraint } else match "/#{Humpyard::config.www_prefix}*webpath.:format" => 'humpyard/pages#show', :constraints => { :format => Humpyard.config.page_formats_contraint } match "/#{Humpyard::config.www_prefix}*path" => 'humpyard/errors#error404' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
humpyard-0.0.1 | config/routes.rb |