```ruby
class UsersController < ApplicationController

  def new
    @user = User.new
  end

  def create
    @user = User.find_or_create_by(user_params)
  end

  def show

  end

  def edit

  end

  def update

  end

  def destroy
  end


  private

  def user_params
    params.require(:user).permit(:username, :email, :password, :password_confirmation)
  end

end```

Fix user controller show route
user
```ruby
class UsersController < ApplicationController

  def new
    @user = User.new
  end

  def create
    @user = User.find_or_create_by(user_params)
  end

  def show
    @user = User.find_by(session[:user_id])
    # @user.question.id 
  end

  def edit

  end

  def update

  end

  def destroy
  end


  private

  def user_params
    params.require(:user).permit(:username, :email, :password, :password_confirmation)
  end

end```
assistant