sandy wrote:
> @other_bbqs = Event.search  :with => { :date => (@event.date -
> 3).to_time.to_i..(@event.date + 3).to_time.to_i}
> 
> adding "event_id => [email protected]" doesn't do the trick but that is my
> general intent, so could someone please enlighten me as to the proper
> syntax?

Assuming you have your event ID as an attribute, try:

Event.search  :with => { :date => (@event.date - 3).to_time.to_i..(@event.date 
+ 3).to_time.to_i},
              :without => {:event_id => @event.id}

-- James Healy <jimmy-at-deefa-dot-com>  Sat, 11 Apr 2009 21:57:35 +1000

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" 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/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to