Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
schedules
Commits
f1ff3619
Commit
f1ff3619
authored
Dec 14, 2018
by
Zac Wood
Browse files
trying to fix routing issues
parent
00d6edf9
Pipeline
#3475
passed with stages
in 12 minutes and 56 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
schedules/app/controllers/search_controller.rb
View file @
f1ff3619
class
SearchController
<
ApplicationController
def
index
# sorry zach
results
=
SearchHelper
::
GenericItem
.
fetchall
(
String
.
new
(
params
[
:query
]),
semester:
@semester
).
group_by
(
&
:type
)
# results = search(params[:query])
...
...
schedules/config/environments/production.rb
View file @
f1ff3619
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment