On Sep 25, 4:44 pm, Frederick Cheung <[EMAIL PROTECTED]>
wrote:
> On Sep 25, 9:40 am, Thorsten Müller <[EMAIL PROTECTED]> wrote:
> @upcoming_events = Event.find(:all, :conditions => ["venue_id IN (?)
> AND date > ? ", @nearby_venues, Time.now ], order => 'date')
>
> Active Record takes care of the boring stuff like creating the comma
> separated list of ids and so on.

This is what I like so much about AR.

I think Date.today might be more logically correct than using
Time.now, though.
--~--~---------~--~----~------------~-------~--~----~
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