Use key not title for module_app in parser.

Modify announcement routes.
This commit is contained in:
Christophe Vilayphiou committed 2012-02-06 16:58:19 +08:00
1 parent e02c675595
commit 8f885e8bb7
4 files changed
+6 -8

No files matched your search

+1 -1
View File
@@ -6,6 +6,6 @@
"intro": "A simple blog……",
"update_info": "Some info",
"create_date": "11-11-2011",
"app_pages": ["/panel/announcement/front_end/"],
"app_pages": ["bulletins"],
"enable_frontend": true
}
+3 -5
View File
@@ -5,19 +5,17 @@ Rails.application.routes.draw do
namespace :back_end do
root :to => "bulletins#index"
resources :bulletins
resources :bulletin_categorys, :controller => 'bulletin_categorys' do
match "quick_edit/:bulletin_category_id" => "bulletin_categorys#quick_edit" ,:as => :quick_edit
end
resources :bulletin_categorys, :controller => 'bulletin_categorys' do
match "quick_edit/:bulletin_category_id" => "bulletin_categorys#quick_edit" ,:as => :quick_edit
end
end
namespace :front_end do
root :to => "bulletins#index"
resources :bulletins
match "show/:id" => "bulletins#show" ,:as => :bulletin
end
namespace :widget do
root :to => "bulletins#index"
end
end
end
match "/appfront/*path" => redirect("/panel/*path")
end