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
0
Merge Requests
0
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
Mai Hoang Thai Ha
VenJob
Commits
b51d4466
Commit
b51d4466
authored
Aug 16, 2021
by
Mai Hoang Thai Ha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed format accept
parent
5e22e2cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/models/apply_job.rb
+1
-1
app/views/applies/new.html.slim
+1
-1
No files found.
app/models/apply_job.rb
View file @
b51d4466
class
ApplyJob
<
ApplicationRecord
VALID_EMAIL_REGEX
=
/\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
ACCEPT_CONTENT_TYPE
=
%w[application/pdf application/msword application/zip application/xls application/xlsx]
.
freeze
ACCEPT_CONTENT_TYPE
=
'application/pdf, application/msword, application/zip, application/xls, application/xlsx'
.
freeze
belongs_to
:job
belongs_to
:user
...
...
app/views/applies/new.html.slim
View file @
b51d4466
...
...
@@ -31,7 +31,7 @@
=
f
.
file_field
:cv
,
accept:
ApplyJob
::
ACCEPT_CONTENT_TYPE
,
class:
'form-control'
=
f
.
submit
'Confirm'
,
class:
'btn btn-primary w-25 my-4 btn-height'
=
render
'validate_form'
/
= render 'validate_form'
=
javascript_pack_tag
'validation'
javascript:
Validator
({
...
...
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