Sha256: 8e1c04278bccf490445b603fb5625ea64f062d5bd212a1cff3f6fdb8cd66870a
Contents?: true
Size: 300 Bytes
Versions: 1
Compression:
Stored size: 300 Bytes
Contents
module Gemgento class SearchController < ApplicationController respond_to :json, :html def index @results = Gemgento::Search.products(params[:query]).active respond_to do |format| format.html format.json { render json: @results } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemgento-2.8.0 | app/controllers/gemgento/search_controller.rb |