search_controller.rb 188 Bytes
Newer Older
Zac Wood's avatar
Zac Wood committed
1
2
class SearchController < ApplicationController
  def index
3
    @results = SearchHelper::GenericItem.fetchall(params[:query])
Zac Wood's avatar
Zac Wood committed
4
5
  end

6
7
  def update
    cookies[:ids] = params[:ids]
Zac Wood's avatar
Zac Wood committed
8
9
  end
end