Modification of the page model

This commit is contained in:
chris2tof committed 2011-05-18 10:00:00 +08:00
1 parent 4399804e19
commit 3d97c5bfda
9 files changed
+71 -36

No files matched your search

+2 -2
View File
@@ -54,9 +54,9 @@ module ApplicationHelper
if node
case node._type
when 'Page'
dest = admin_page_path(:id => node.id)
dest = admin_page_path(node)
when 'Link'
dest = admin_link_path(:id => node.id)
dest = admin_link_path(node)
end
ret << "<li>"
ret << (link_to node.name, dest)