This is basically how I do it:
def tasks(options={})
unless options[:something].blank?
end
end
There are several ways to pass parameters, but you definitely want to pass a hash with a default value (so that you can call the method without parameters).
In your case, indicate what you want to do:
def tasks(options={})
Task.find(:all, options[:conditions])
end
Edit: and then name it @thing.tasks( {:conditions => "blah"} )
I have not tested, but it should be fine
2: , EmFi, . . @thing.tasks.find(:all, :conditions => {blah})