supply search object for my_request_for_comments
This commit is contained in:
@ -17,7 +17,8 @@ class RequestForCommentsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def get_my_comment_requests
|
def get_my_comment_requests
|
||||||
@request_for_comments = RequestForComment.where(user_id: current_user.id).order('created_at DESC').paginate(page: params[:page])
|
@search = RequestForComment.where(user_id: current_user.id).order('created_at DESC').search(params[:q])
|
||||||
|
@request_for_comments = @search.result.paginate(page: params[:page])
|
||||||
render 'index'
|
render 'index'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user