I am having these objects:
class District < ActiveRecord::Base belongs_to :city end class City < ActiveRecord::Base has_many :districts end
Use the name of the table, probably cities. It might look like this:
cities
District.joins(:city).order("cities.name")