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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

