Displaying 1 result from an estimated 1 matches for "1758e85c".
2006 Feb 23
8
SQL quoting for :order parameter
When I construct a query using variables I do something like this:
@users = User.find(:all, :conditions => ["location = ?", location])
I would like to do the same sort of thing in the :order parameter.
@users = User.find(:all, :order => ["? ASC", location])
When I try this though I get a SQL error and I see that the items in the
array were concatenated together and