mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-27 05:13:03 +01:00
10 lines
191 B
Ruby
10 lines
191 B
Ruby
|
class SearchController < ApplicationController
|
||
|
def index
|
||
|
@results = []
|
||
|
query = params[:q]
|
||
|
return if query.blank?
|
||
|
|
||
|
@results = PgSearch.multisearch(query).limit(10)
|
||
|
end
|
||
|
end
|