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
2
Merge Requests
2
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
Hoang Nam Nguyen
Venjob
Commits
74cb245e
Commit
74cb245e
authored
Oct 05, 2017
by
Hoang Nam Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
files
parent
972348f5
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
2 deletions
+21
-2
app/controllers/application_controller.rb
+1
-0
app/helpers/applies_helper.rb
+13
-0
app/helpers/sessions_helper.rb
+1
-1
app/views/users/my_jobs.html.erb
+0
-0
config/initializers/customize_error.rb
+3
-0
db/schema.rb
+3
-1
public/uploads/user/cv/51/Nguyen_Hoang_Nam_Payroll_for_parttime_August_2017.pdf
+0
-0
public/uploads/user/cv/52/ho_so_tieng_anh.pdf
+0
-0
No files found.
app/controllers/application_controller.rb
View file @
74cb245e
class
ApplicationController
<
ActionController
::
Base
protect_from_forgery
with: :exception
include
SessionsHelper
# include AppliesHelper
end
app/helpers/applies_helper.rb
View file @
74cb245e
module
AppliesHelper
# def apply_job(user_apply)
# apply[:user_apply_id] = user_apply.id
# binding.pry
# end
# def current_apply_job
# @current_apply_job ||= Apply.find_by(id: apply[:user_apply_id])
# end
# def applied_job?
# !current_apply_job.job_id.nil?
# end
end
app/helpers/sessions_helper.rb
View file @
74cb245e
module
SessionsHelper
module
SessionsHelper
def
log_in
(
user
)
session
[
:user_id
]
=
user
.
id
end
...
...
app/views/users/my_jobs.html.erb
0 → 100644
View file @
74cb245e
config/initializers/customize_error.rb
0 → 100644
View file @
74cb245e
ActionView
::
Base
.
field_error_proc
=
Proc
.
new
do
|
html_tag
,
instance_tag
|
html_tag
end
db/schema.rb
View file @
74cb245e
...
...
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2017100
2022713
)
do
ActiveRecord
::
Schema
.
define
(
version:
2017100
4020516
)
do
create_table
"add_cv_to_users"
,
force: :cascade
,
options:
"ENGINE=InnoDB DEFAULT CHARSET=utf8"
do
|
t
|
t
.
string
"cv"
...
...
@@ -23,6 +23,8 @@ ActiveRecord::Schema.define(version: 20171002022713) do
t
.
string
"email"
t
.
datetime
"created_at"
,
null:
false
t
.
datetime
"updated_at"
,
null:
false
t
.
integer
"job_id"
t
.
integer
"user_id"
end
create_table
"cities"
,
force: :cascade
,
options:
"ENGINE=InnoDB DEFAULT CHARSET=utf8"
do
|
t
|
...
...
public/uploads/user/cv/51/Nguyen_Hoang_Nam_Payroll_for_parttime_August_2017.pdf
0 → 100644
View file @
74cb245e
File added
public/uploads/user/cv/52/ho_so_tieng_anh.pdf
0 → 100644
View file @
74cb245e
File added
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