On Sep 25, 9:20 am, Gearóid O'Ceallaigh <[EMAIL PROTECTED]> wrote:
> Cheers, that worked perfectly.
>
>
> @upcoming_events = Event.find(:all, :conditions => {:venue_id =>
> @nearby_venues and :date > @today}, order => date)
>
> This doesn't work either however, any advice?
Oops, that doesn't even look like syntatically correct ruby. You can't
use the ever so trendy hash form of conditions for this, ie you need
to use the more boring sql fragment form. There are examples in the
api docs for ActiveRecord.
Fred
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---