I'd like to implement "text search function" over body part of tons messages. If anyone knows how to implement that to "Mailboxer", please show me how. I have no idea how it goes.
When I access example.com/messages/search?page=3&search=test&utf8=%E2%9C%93 This code won't send back correct result...
def search
@search = params[:search]
@a = current_user.search_messages(@search)
@messages = Kaminari.paginate_array(@a).page(params[:page]).per(10)
render :received
end