search_controller.rb 308 Bytes
Newer Older
Zac Wood's avatar
Zac Wood committed
1
2
class SearchController < ApplicationController
  def index
3
4
5
6
7
    puts SearchHelper::GenericItem.fetchall("cs 110")
    @courses = []
    # @courses = Course.fetch(params).select do |course|
    #   course.course_sections.count.positive?
    # end
Zac Wood's avatar
Zac Wood committed
8
9
  end

10
11
  def update
    cookies[:ids] = params[:ids]
Zac Wood's avatar
Zac Wood committed
12
13
  end
end