Class: Refinery::SearchController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Refinery::SearchController
- Defined in:
- app/controllers/refinery/search_controller.rb
Instance Method Summary collapse
-
#show ⇒ Object
Display search results given the query supplied.
Instance Method Details
#show ⇒ Object
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 |