pharrington wrote:
> On Aug 23, 1:15�am, tispratik <[email protected]> wrote:
>> (tasks.due_date=?)","Task","2","20","2009-08-22"]
>>
>> Thanks and Regards,
>> Pratik
> 
> Instead of doing funky array manipulation to build your model's SQL
> find conditions, are you absolutely sure you shouldn't just be using
> scopes instead?

Or if not scopes, plain old conditions hashes.  If you're trying to use 
this as a :conditions parameter to find, remember that :conditions will 
also take a hash:

 ["(modulable_type=?) AND (parent_id=?) AND (status=?) AND
(tasks.due_date=?)","Task","2","20","2009-08-22"]
{:modulable_type => 'Task', :parent_id => 2 ... }
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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