RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: ericeche
Any progress in how to sort column data from associated tables using server side processing?
class Workshop < ActiveRecord::Base
belongs_to :location, :class_name => 'Location'
class Location < ActiveRecord::Base
Records are associated by id ( workshop.id = location_id)
On the Workshop datatable class, the information displayed is the location_name
workshops.map do |workshop|
I would like to be able to sort the location column by location_name and not by location_id.