Change "NewBlog" folders into "new_blog" in assets

Modify routes and pages handling for clean front-end urls
This commit is contained in:
Christophe Vilayphiou committed 2012-01-24 18:16:58 +08:00
1 parent 6a196c5d3d
commit 783eae4597
12 files changed
+40 -26

No files matched your search

+2 -2
View File
@@ -9,8 +9,8 @@ Rails.application.routes.draw do
end
namespace :front_end do
root :to => "posts#index"
match "show/:id" => "posts#show" ,:as => :post
match "comments" => "comments#create",:as => :comments
resources :posts
resources :comments
end
namespace :widget do
root :to => "posts#index"
+4 -4
View File
@@ -1,12 +1,12 @@
{
"title": "NewBlog",
"title": "new_blog",
"version": "0.1",
"organization": "Rulingcom",
"author": "RD dep",
"intro": "A simple blog……",
"update_info": "Some info",
"create_date": "11-11-2011",
"app_pages": ["/panel/new_blog/front_end/"],
"widgets": ["/panel/new_blog/widget/latest_post","/panel/new_blog/widget/"],
"enable_frontend": false
"app_pages": ["posts"],
"widgets": ["/latest_post","/"],
"enable_frontend": true
}