Page form with drop down. Modifications for Designs

This commit is contained in:
chris2tof committed 2011-08-25 08:13:38 +08:00
1 parent 27d47215e9
commit c427e2af14
12 files changed
+118 -49

No files matched your search

+4 -1
View File
@@ -27,6 +27,7 @@ PrototypeR4::Application.routes.draw do
resources :pages do
member do
get 'delete'
get 'reload_themes'
end
end
resources :page_parts
@@ -49,7 +50,9 @@ PrototypeR4::Application.routes.draw do
# routes for gridfs files
match "/gridfs/*path" => "gridfs#serve"
match "/images/*path" => "gridfs#serve_images"
match "/admin/pages/images/*path" => "gridfs#serve_images"
# routes for pages to generate
match '*page_name' => 'pages#show', :as => :page, :constraints => lambda{|request|
!request.path.starts_with?("/panel")