I\'m creating a search page that will do an application wide search on users, posts, and comments. I currently have:
# POST /search def index query = params[:q
You could combine the results from the query and run page on that.
users = User.search(query) posts = Post.search(query) comments = Comment.search(query) @results = users + posts + comments @results.page(params[:page])