I am following Ryan Bates' railscast on Sortable Table Columns and I have successfully gotten a column to sort ascending and descending.
My table is more complex than in the Railscast because I have columns from different tables.
# controller
@cars = Car.find(:all).order(sort_column + " " + sort_direction).includes(:manufacturers)
#view
<%= sortable "age" %>
How do you add sortable columns for related tables such as manufacturers?