first attempt of making favorite people view sortable

This commit is contained in:
Pfingstfrosch
2020-05-16 13:30:00 +02:00
parent dd7ac8e64f
commit 83d4368af7
3 changed files with 54 additions and 18 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
class FavoritesController < ApplicationController
def people
@favoritePeople = FavoritePerson.where('user_id': current_user.id)
@favorite_people = FavoritePerson.where('user_id': current_user.id)
.order(params[:sort])
@host = 'https://tiss.tuwien.ac.at'
end