first attempt of making favorite people view sortable
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user