Multiple args with named scope.. problem

i'm trying to figure out what i'm doing wrong here.

  named_scope :schedule_limits, lambda { |*args| {:conditions => ["id =
? and sched_start > ? and sched_start < ?" , ( args[0], args[1],
args[2]) ]} }

it just produces the error

/dir/dir/dir/schedule.rb:9: syntax error, unexpected ')', expecting '='

i'm trying to figure out what i'm doing wrong here.

named_scope :schedule_limits, lambda { |*args| {:conditions => ["id =
? and sched_start > ? and sched_start < ?" , ( args[0], args[1],
args[2]) ]} }

it just produces the error

/dir/dir/dir/schedule.rb:9: syntax error, unexpected ')', expecting
'='

because you shouldn't have those () you;ve got there.

Fred

well that got rid of the first error but now it says that i

undefined method `schedule_limits'

well that got rid of the first error but now it says that i

undefined method `schedule_limits'

That sounds like it's coming from a different line. show the whole
error message and model and things might become clearer.

Fred