Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
final_project
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
evilla_gomez_guian_principe
final_project
Commits
9b8dc62a
Commit
9b8dc62a
authored
Jul 18, 2016
by
Jasmine Principe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added linkt to profile
parent
72ce6b7b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
1 deletion
+20
-1
users_controller.rb
trial-galen/Poller/app/controllers/users_controller.rb
+7
-0
application.html.erb
trial-galen/Poller/app/views/layouts/application.html.erb
+4
-0
show.html.erb
trial-galen/Poller/app/views/users/show.html.erb
+6
-0
routes.rb
trial-galen/Poller/config/routes.rb
+3
-1
No files found.
trial-galen/Poller/app/controllers/users_controller.rb
0 → 100644
View file @
9b8dc62a
class
UsersController
<
ApplicationController
def
show
@user
=
User
.
find
(
params
[
:id
])
render
"users/show.html.erb"
end
end
trial-galen/Poller/app/views/layouts/application.html.erb
View file @
9b8dc62a
...
@@ -12,6 +12,10 @@
...
@@ -12,6 +12,10 @@
<%
if
user_signed_in?
%>
<%
if
user_signed_in?
%>
Welcome
<%=
current_user
.
email
%>
!
Welcome
<%=
current_user
.
email
%>
!
<br>
<br>
<%=
link_to
"Home"
,
root_path
%>
|
<%=
link_to
"Profile"
,
current_user
%>
|
<%=
link_to
"Logout"
,
destroy_user_session_path
,
method: :delete
%>
<%=
link_to
"Logout"
,
destroy_user_session_path
,
method: :delete
%>
<hr>
<hr>
<%
else
%>
<%
else
%>
...
...
trial-galen/Poller/app/views/users/show.html.erb
0 → 100644
View file @
9b8dc62a
<h1>
<%=
@user
.
first_name
%>
</h1>
<h2></h2>
<p>
</p>
\ No newline at end of file
trial-galen/Poller/config/routes.rb
View file @
9b8dc62a
Rails
.
application
.
routes
.
draw
do
Rails
.
application
.
routes
.
draw
do
devise_for
:users
devise_for
:users
resources
:users
,
:only
=>
[
:show
]
root
to:
"pages#index"
root
to:
"pages#index"
resources
:users
resources
:candidates
resources
:candidates
resources
:positions
resources
:positions
...
...
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