On May 18, 7:41 am, Paul Jonathan Thompson <rails...@gmail.com> wrote: > I am testing for the existence of records on a database. If I use: > > Mapper.exists?(product.id) > > How do I test if the condition returned was true or false? >
I'm not entirely sure what you're asking. Are you just looking for if Mapper.exists?(product.id) ... else ... end Fred > Thanks in advance. > > Paul Thompson > > -- > 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-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/rubyonrails-talk?hl=en. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.