Ray's modification before redesign
This commit is contained in:
1 parent
bfd55277d7
commit
5518ae362d
21 files changed
+1000
-578
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user