On Aug 23, 1:15 am, tispratik <[email protected]> wrote: > Can anyone help me on the following? > > I have the following 2 arrays, how do i get c as a result of a and b. > The elements should be in the specified order. > > a = ["(modulable_type=?) AND (parent_id=?) AND > (status=?)","Task","2","20"] > b = ["(tasks.due_date=?)", "2009-08-22"] > > c = ["(modulable_type=?) AND (parent_id=?) AND (status=?) AND > (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? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

