OSDN Git Service

filer worked
[pettanr/pettanr.git] / lib / manifest / filer / symbol / default / link / link.rb
index f842ab7..d7b83dc 100644 (file)
@@ -22,6 +22,10 @@ module Manifest
               @args = @link_manifest['args']
             end
             
+            def filer
+              @symbol.filer
+            end
+            
           end
           
           class ActionLink < BaseLink
@@ -37,8 +41,9 @@ module Manifest
               @action_name = @args['action_name']
             end
             
-            def url
-              '/' + @name
+            def action_path
+              a = @action_name == 'show' ? '' : @action_name + '/'
+              '/' + self.filer.item_class.path_name + '/' + a
             end
             
           end