Ruby on Rails Monday, November 28, 2011

kahou l. wrote in post #1034157:
> I am confused by "instead, then rails will allocate the ids."
>
> So do you mean it is improper to do this:
>
> user.Description << d

No. Colin was referring to statements like in one of the replies to your
question:

u1.id = 1001

Don't do this. ActiveRecord wants to manage setting the id (primary key)
itself.

P.S. Sorry for my continued misuse of it's vs. its in earlier posts.
That damn apostrophe keeps slipping in where it doesn't belong.

--
Posted via http://www.ruby-forum.com/.

--
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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment