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
Huỳnh Thiên Phước
venjob
Commits
f899b54c
Commit
f899b54c
authored
Aug 24, 2020
by
Huỳnh Thiên Phước
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete job_applieds_controller.rb
parent
5aa6a5be
Pipeline
#1002
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
+0
-30
app/controllers/job_applieds_controller.rb
+0
-30
No files found.
app/controllers/job_applieds_controller.rb
deleted
100644 → 0
View file @
5aa6a5be
class
JobAppliedsController
<
ApplicationController
before_action
:sign_in_validation
,
only:
[
:new
,
:confirmation
,
:create
]
def
new
end
def
confirmation
@user
=
JobApplied
.
new
(
apply_params
)
return
root_path
unless
apply_params
end
def
create
binding
.
pry
@user
=
JobApplied
.
new
(
apply_params
)
return
root_path
unless
@user
return
job_detail_path
(
apply_params
[
:job_id
])
unless
@user
.
save
end
private
def
sign_in_validation
return
if
signed_in?
flash
[
:warning
]
=
Settings
.
user
.
warning_signin
redirect_to
login_path
end
def
apply_params
params
.
require
(
:job_applied
).
permit
(
:name
,
:email
,
:job_id
,
:cv_user
)
end
end
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