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
Nguyen Ngoc Nghia
VeNJOB
Commits
969dcb24
Commit
969dcb24
authored
Dec 29, 2019
by
Nguyen Ngoc Nghia
Committed by
nnnghia98
Jan 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create view for applied jobs
parent
b3f131ec
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
app/controllers/users/my_pages_controller.rb
+4
-0
app/views/users/my_pages/applied_jobs.html.erb
+2
-0
app/views/users/my_pages/show.html.erb
+1
-1
config/routes.rb
+3
-1
No files found.
app/controllers/users/my_pages_controller.rb
View file @
969dcb24
class
Users
::
MyPagesController
<
ApplicationController
class
Users
::
MyPagesController
<
ApplicationController
def
show
def
show
end
end
def
applied_jobs
@applied_jobs
=
current_user
.
jobs
.
all
end
end
end
app/views/users/my_pages/applied_jobs.html.erb
0 → 100644
View file @
969dcb24
Applied jobs here
\ No newline at end of file
app/views/users/my_pages/show.html.erb
View file @
969dcb24
...
@@ -6,5 +6,5 @@
...
@@ -6,5 +6,5 @@
<h3>
My CV:
<%=
current_user
.
cv_path
%>
</h3>
<h3>
My CV:
<%=
current_user
.
cv_path
%>
</h3>
<%=
link_to
"Edit"
,
edit_user_registration_path
,
class:
"btn btn-lg btn-primary"
%>
<%=
link_to
"Edit"
,
edit_user_registration_path
,
class:
"btn btn-lg btn-primary"
%>
<%=
link_to
"My jobs"
,
"#"
,
class:
"btn btn-lg btn-primary"
%>
<%=
link_to
"My jobs"
,
jobs_users_my_page_path
,
class:
"btn btn-lg btn-primary"
%>
</div>
</div>
config/routes.rb
View file @
969dcb24
...
@@ -11,6 +11,8 @@ Rails.application.routes.draw do
...
@@ -11,6 +11,8 @@ Rails.application.routes.draw do
devise_for
:users
devise_for
:users
root
"tops#index"
root
"tops#index"
namespace
:users
do
namespace
:users
do
resource
:my_page
,
only: :show
resource
:my_page
,
only: :show
do
get
"/jobs"
,
to:
"my_pages#applied_jobs"
end
end
end
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