RailsCasts Pro episodes are now free!

Learn more or hide this

jayeshmori's Profile

GitHub User: jayeshmori

Comments by


Guys anyone knows how to apply this sortable logic for associations.

For example, i have a table videos (id, name, video_category_id) and video_categories (id, name). I am displaying video name and video category name in a table. Now when someone wants to sort using video category name, it should sort records with video category name instead of using video category id from the association column in video table.