rubyonrailsin

A Ruby and Rails talk

Saturday, March 13, 2010


Re: [Rails] Find first or create

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

On 13 March 2010 16:14, Milan Dobrota <lists@ruby-forum.com> wrote:
> Post.comments.find_or_create(:first)

If it doesn't find a comment, and creates a new one, what values is it
going to populate the record with?
Or is it that you want a new blank record for some purpose?

--
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

Subscribe feeds via e-mail

Blog Archive