Hey,
I''m wondering whether the following ''should'' work,
but I''m just not
getting it right.
I have the following association on my model:
has_many :things do
def cool
find(:all, :conditions => { :cool => true })
end
end
Now, I want to be able to do the following:
Suitcase.things.find(:all, :conditions => { :date => Date.today }).cool
I get an error that Array does not have a ''cool'' method.
Any ideas?
Thanks
Joerg
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---