Class: Refinery::SearchController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/refinery/search_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject

Display search results given the query supplied



5
6
7
8
9
# File 'app/controllers/refinery/search_controller.rb', line 5

def show
  @results = Refinery::SearchEngine.search(params[:query], params[:page])

  present(@page = Refinery::Page.find_by_link_url("/search"))
end