app/models/comatose/page.rb
# Creates a URI path based on the Page tree
Creates a URI path based on the Page tree
Creates a URI path based on the Page tree
def create_full_path
       if parent_node = self.parent
          path = "#{parent_node.full_path}/#{self.slug}"
          path = path[1..-1] if path.starts_with? "/"
          self.full_path = path || ""
       else
          self.full_path = ""
       end
    end
def create_full_path if parent_node = self . parent path = "#{parent_node.full_path}/#{self.slug}" path = path [ 1 .. - 1 ] if path . starts_with? "/" self . full_path = path || "" else self . full_path = "" end end
Creates a URI path based on the Page tree
Creates a URI path based on the Page tree
# Build URI Path # strip leading space, if there is one... # I'm the root -- My path is blank