On Mar 1, 10:26 am, LeonS <[email protected]> wrote: > Hi, > > I want to generate a query with conditions like that > > :conditions => ["score_team_1 ? score_team_2", compare_sign] . > > The resulting query ends e.g. with score_team_1 '=' score_team_2 > How can i remove the apostrophes from include into the string? > Thanks
You can't really do that like this - bind variables as designed for inserting literals. 'Normal' ruby interpolation might be the way forward here (assuming that compare sign is coming from a trusted source, if not sanitize it first). 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.

