KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to sort / order it (desc or asc how i want it) by the database table column "plays" Im totally confused. Just found a solution for select but not collection_select? some code of my view <%= f.collection_select :player1, Player.all, :id, :name %> dont know how to sort / order there are also columns in the database table like "plays", "goals" ...
Tags (comma-separated)
Save Edits
Cancel