With find_or_create, I don't believe there is a way.

You can certainly do it with find_or_initialize

winter = Tag.find_or_initialize_by_name("Winter")
winter.persisted? # true if record exists, false if it does not


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

Reply via email to