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
@@ -43,9 +43,9 @@ class ApplicationController < ActionController::Base
end
# Render the page
def render_page(url = nil)
def render_page(id = nil)
if @item
render :text => parse_page(@item,url)
render :text => parse_page(@item, id)
else
render :text => '404 Not Found'
end