class Link < Item field :url validates_presence_of :url def link ApplicationController.helpers.link_to(self.name, self.url) end end