app/models/comment.rb
# the url of the parent object (taxon concept or data object)
the url of the parent object (taxon concept or data object)
the url of the parent object ( taxon concept or data object )
def parent_url
    return_url = case self.parent_type
     when 'TaxonConcept' then "/pages/#{self.parent_id}"
     when 'DataObject'   then "/data_objects/#{self.parent_id}"
     else ''
    end
    return return_url
  end
def parent_url return_url = case self . parent_type when 'TaxonConcept' then "/pages/#{self.parent_id}" when 'DataObject' then "/data_objects/#{self.parent_id}" else '' end return return_url end
the url of the parent object (taxon concept or data object)
the url of the parent object ( taxon concept or data object )