several details wrong here :)

- :conditions => {...} is defining a hash. You can't use "and" within
that, only
key/value pairs. So you must use one of the alternative syntax
variants:

@upcoming_events = Event.find(:all, :conditions => ["venue_id IN (?)
AND date > '?' ", @nearby_venues.join(","), Time.now.to_s(:db) ],
order => date)

so using a kind of SQL string, the variable part replaced by question
marks
and the values to be filled in for the ? directly following the string
--~--~---------~--~----~------------~-------~--~----~
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