Displaying 1 result from an estimated 1 matches for "speaking_english".
2011 Apr 23
3
Rails3 how to scope it, using a serialized array ?
giving a simple model, with a serialized Array attribute
class Instructor < User
..
serialize :languages, Array
I am looking in defining scopes like this :
>scope speaking_english, lambda { where("languages ... includes.... ?", :en) }
which look for instructors in which the languages array include ":en"
Is this kind of scope possible ? or not.... ( just using query )
thanks FYF ( For Your Feedback)
--
You received this message because you are sub...