/ Authentication / Adding User Profile To Rails (Devise)

1. Create new User Controller

class UsersController < ApplicationController
  before_filter :set_user, only: [:show]

  def show
  end

  private
    
    def set_user
      @user = User.find(params[:id])
    end

 

2. Create Users view with show.html.erb file

 

3. Add user route

resources :users

 

 

No video for this post.

No issues for this post.

by ryzalyusoff