Commit f1ff3619 authored by Zac Wood's avatar Zac Wood

trying to fix routing issues

parent 00d6edf9
Pipeline #3475 passed with stages
in 12 minutes and 56 seconds
class SearchController < ApplicationController
def index
# sorry zach
results = SearchHelper::GenericItem.fetchall(String.new(params[:query]), semester: @semester).group_by(&:type)
# results = search(params[:query])
......
......@@ -4,6 +4,10 @@ Rails.application.configure do
# Code is not reloaded between requests.
config.cache_classes = true
config.action_controller.default_url_options = {
host: ENV['HTTP_HOST'] || 'localhost'
}
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web servers
# and those relying on copy on write to perform better.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment