Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VeNJob
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
1
Merge Requests
1
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
Tô Ngọc Ánh
VeNJob
Commits
3b5112ad
Commit
3b5112ad
authored
Aug 20, 2020
by
Tô Ngọc Ánh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keep value input if validation error
parent
936da9e5
Pipeline
#964
canceled with stages
in 0 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/assets/stylesheets/common.scss
+0
-0
app/controllers/applied_jobs_controller.rb
+2
-2
config/environment.rb
+5
-0
No files found.
app/assets/stylesheets/common.scss
View file @
3b5112ad
app/controllers/applied_jobs_controller.rb
View file @
3b5112ad
...
...
@@ -12,8 +12,8 @@ class AppliedJobsController < ApplicationController
@applied_job
=
current_user
.
applied_jobs
.
new
(
applied_job_params
)
@applied_job
.
curriculum_vitae
=
current_user
.
curriculum_vitae
if
params
[
:applied_job
][
:curriculum_vitae
].
nil?
if
@applied_job
.
invalid?
flash
[
:error
]
=
@applied_job
.
errors
.
full_messages
re
direct_to
new_applied_job_path
(
job_id:
@applied_job
.
job_id
)
flash
.
now
[
:error
]
=
@applied_job
.
errors
.
full_messages
re
nder
:new
end
end
...
...
config/environment.rb
View file @
3b5112ad
# Load the Rails application.
require_relative
'application'
# disable auto add field_with_errors class
ActionView
::
Base
.
field_error_proc
=
Proc
.
new
do
|
html_tag
,
instance
|
html_tag
.
html_safe
end
# Initialize the Rails application.
Rails
.
application
.
initialize!
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