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