I'm looking to define a method that lets me pass options; something like:
@user.tasks(:completed => true)
I thought something like this would work in my user model (but it's not):
User.rb model
def tasks(options)
tasks.find(:all, options)
end
How would I define the method correctly to let me use @user.tasks(:completed => true)?