Ray's modification before redesign

This commit is contained in:
Christophe Vilayphiou authored and Christophe Vilayphiou committed 2012-01-24 11:57:27 +08:00
1 parent bfd55277d7
commit 5518ae362d
21 files changed
+1000 -578

No files matched your search

+4 -4
View File
@@ -19,7 +19,7 @@ class PagesController < ApplicationController
end
def show
begin
#begin
item = Item.first(:conditions => {:full_name => params[:page_name]})
case item._type
when 'Page'
@@ -28,9 +28,9 @@ class PagesController < ApplicationController
when 'Link'
redirect_to "http://#{item[:url]}"
end
rescue
render :file => "#{Rails.root}/public/404.html", :status => :not_found
end
#rescue
# render :file => "#{Rails.root}/public/404.html", :status => :not_found
#end
end
end