- if entry.present? && attribute.class.exists?(entry)
  = link_to "##{ entry }",
    edit_polymorphic_path(attribute.class.find_by(id: entry))
- else
  = "##{ entry }"

- if entry.present?
  - if attribute.class.exists?(entry)
    = link_to "##{ entry }", edit_polymorphic_path(attribute.class.find_by(id: entry))
  - else
    = "##{ entry }"

Fix belongs_to partial for list
Fix belongs_to partial for list
