Skip to content
zorec edited this page Nov 20, 2013 · 1 revision

In #show action the fields with an association objects are shown as #<AssociationClass:0x0000000625eee0>

Define method to_label in the association model, eg.:

def to_label
  labelize do
    "My Label #{self.id}"
  end
end

In #show action the fields with an association objects is not shown as a links

You do not have probably defined route for the association resouce, eg. resources :my_association_resource, concerns: [:resourcable]

Clone this wiki locally