2009/7/12 Rails List <[email protected]>:
>
> Recently I read that the following find
>
> Type 1
> ------
> Post.find(:first, :conditions => ['status = ? and active = ?', 1, 1])
>
> can be written as
>
> Type 2
> ------
> Post.find(:first, :conditions => { :status => 1, :active => 1 })
>
>
> But how do I include LIKE operator in Type 2 find?

I believe that you cannot use LIKE in the Type 2 find.

Colin

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