Tuesday, November 6, 2012

Re: [Rails] has_one relation and form_for

Jean ha scritto:
> Thanks Tommaso, It works, but the user_id has this User:0x007fe37d33b5e0
> no User:1, is that ok???

Don't confuse the actual data (saved on db) and the representation of it
in the views. You see the representation of the User model, which is
composed of user attributes (like @user.id, etc.).
My advice is to play with rails console to clarify your doubts

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate