app/controllers/home_controller.rb
# Searches for Maps and Layers across the titles and descriptions
# Returns json (using jbuilder)
# params 
# query : string to search
# per_page : limit number of records (optional)
Searches for Maps and Layers across the titles and descriptions
Returns json (using jbuilder)
params
query : string to search
per_page : limit number of records (optional)
Searches for Maps and Layers across the titles and descriptions Returns json ( using jbuilder ) params query : string to search per_page : limit number of records ( optional )
def search
    per_page = params[:per_page] || 50
    logger.debug per_page
    @results = PgSearch.multisearch(params[:query].to_s).limit(per_page.to_i)
  end
def search per_page = params [ :per_page ] || 50 logger . debug per_page @results = PgSearch . multisearch ( params [ :query ] . to_s ) . limit ( per_page . to_i ) end
Searches for Maps and Layers across the titles and descriptions
Returns json (using jbuilder)
params
query : string to search
per_page : limit number of records (optional)
Searches for Maps and Layers across the titles and descriptions Returns json ( using jbuilder ) params query : string to search per_page : limit number of records ( optional )