Hi,

I'm actually working on another approach.

I tried that, but I must have done something wrong.

I might give it a try later.

Thanks,
  TF

On 01/12/2011 06:12 PM, Bryan Larsen wrote:
Hi Tiago. I'm sure you've figured out your problem already so this is for future people who find your question via google, but did you forget to add ":accessible => true"?

There's a whole manual chapter on this subject: http://cookbook.hobocentral.net/manual/multi_model_forms

Bryan


On 11-01-09 04:42 PM, Tiago Franco wrote:
Hi,

Hi have a model named Account:

belongs_to :user
belongs_to :plan

And in the user form I have:

<field-list fields="name, email_address, administrator, state,
account.plan" param/>

The user edit page shows a select box for the account.plan as supposed.
When the form is submitted, the app shows the error:

Account expected, got ActiveSupport::HashWithIndifferentAccess

I'm not sure if I'm doing it correctly. I mean, is hobo supporting this
behavior? The HTML generated by the form looks OK.

Thanks,
TF



--
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to