On 11 Dec 2008, at 16:17, Gi Ga wrote:
>
> If I have a table: (id, lastname, firstname), can I use
> "find_or_create_by_name" if I have to search by first and last
name?
no. find_or_create_by_foo requires foo to be an actual column (but you
can do find_or_create_by_foo_and_bar)
Fred>
> --
> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---