Association - strange formatting

Hi,

i have a simple association:

Appartment: has_many :leads

Lead: Belongs_to: appartment attr_accessible :appartment_id

On the appartment show method a partial is include with a lead-form.

semantic_form_for @lead do |f| f.input :firstname f.input :lastname f.input :appartment, :as => :check_boxes

When the html is rendered the appartment-name (check-boxes) has a strange name like this <Appartment:0x007f88cd175400>

What is this?

Remco

That is because you have asked it to show the complete appartment object in the input box. I am not sure what you are trying to do. By the way, according to my mail client spellchecker there is only one p in apartment :slight_smile:

Colin