[Rails] find and :conditions question
Hello
lets say i have model with :name string field, how to write a "find
:all, :condition => ???" to find records that :name fields includes
certain string...
IRB funcionality example, hope that makes it more clear
irb > str = "112369"
=> "112369"
irb > str.include? "112"
=> true
irb > str.include? "11"
=> true
irb > str.include? "99"
=> false
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home