That User: 0x007fe37d33b5e0 you see is the object id for that User object 
that was created. Thats ruby's ID for it. Your's is contained inside that 
object. Don't confuse 0x007fe37d33b5e0 with being the .id field inside that 
user. Two very different things. The .id field (@user.id) is the *database* 
assigned ID, while the 0x007fe37d33b5e0 is the *object* id for ruby to 
track the user object in memory. Hope this helps you understand the 
difference between the two.

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/Ajn46ZuyRNgJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to