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.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedMar 1, '12 at 11:23a
activeMar 1, '12 at 11:57a
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Marcin S: 1 post Peter Vandenabeele: 1 post

People

Translate

site design / logo © 2022 Grokbase