Your Category class is the one with the column 'Name', but the
categories table isn't used in that query.

Would you post the ruby you're using to construct that query?
I suspect that you need to put the :order parameter on the other side
of that relationship, and it wouldn't hurt to be table-specific in the
join:

class Category < ActiveRecord::Base
  has_many :businesses
  has_and_belongs_to_many :features
end

class Feature < ActiveRecord::Base
  has_and_belongs_to_many :businesses
  has_and_belongs_to_many :categories,  :order => "categories.Name"
end

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" 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/heroku?hl=en.

Reply via email to