Commit 9b8dc62a authored by Jasmine Principe's avatar Jasmine Principe

added linkt to profile

parent 72ce6b7b
class UsersController < ApplicationController
def show
@user = User.find(params[:id])
render "users/show.html.erb"
end
end
......@@ -12,6 +12,10 @@
<% if user_signed_in? %>
Welcome <%= current_user.email %>!
<br>
<%= link_to "Home", root_path %> |
<%= link_to "Profile", current_user %> |
<%= link_to "Logout", destroy_user_session_path, method: :delete %>
<hr>
<% else %>
......
<h1> <%= @user.first_name %> </h1>
<h2></h2>
<p>
</p>
\ No newline at end of file
Rails.application.routes.draw do
devise_for :users
resources :users, :only=> [:show]
root to: "pages#index"
resources :users
resources :candidates
resources :positions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment