Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob_thanhnd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
thanhnd
venjob_thanhnd
Commits
3fefb305
Commit
3fefb305
authored
May 12, 2020
by
thanhnd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mailcatcher and devise
parent
2155b5f7
Pipeline
#611
failed with stages
in 0 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
app/controllers/jobs_controller.rb
+1
-1
config/environments/development.rb
+8
-1
lib/solr.rb
+0
-0
No files found.
app/controllers/jobs_controller.rb
View file @
3fefb305
...
...
@@ -10,7 +10,7 @@ class JobsController < ApplicationController
end
def
search
return
redirect_to
root_path
,
alert:
"Empty field!"
if
params
[
:search
].
blank?
return
redirect_to
"/jobs"
,
alert:
"Empty field!"
if
params
[
:search
].
blank?
solr_rs
=
Solr
.
new
@pagin_job
=
solr_rs
.
query
(
params
[
:search
],
params
[
:page
])
end
...
...
config/environments/development.rb
View file @
3fefb305
...
...
@@ -4,7 +4,14 @@ Rails.application.configure do
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config
.
cache_classes
=
false
#config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config
.
action_mailer
.
default_url_options
=
{
host:
'localhost:3000'
}
config
.
action_mailer
.
delivery_method
=
:smtp
config
.
action_mailer
.
perform_deliveries
=
true
#config.action_mailer.smtp_settings = {:address => "localhost", :port => 1025}
#config.cache_classes = false
# Do not eager load code on boot.
config
.
eager_load
=
false
...
...
lib/solr.rb
View file @
3fefb305
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