title: Couldn't find User with 'id'=show
body: <p>a Rails/Devise Question for you today. I'm working on user profiles for a site and I am hitting this error</p>
  <h1>ActiveRecord::RecordNotFound at /users/show</h1>
  <h3>Couldn't find User with 'id'=show</h3>
  <hr />
  <p>Not sure exactly what's happening as I haven't really run into anything like this before. Here are some necessary files to take a look at-</p>
  <hr />
  <p><em>users_controller.rb</em>:</p>
  <pre><code>class UsersController &lt; ApplicationController
    before_action :authenticate_user!, except: [:show]
  
    def show
      @user = User.find(params[:id])
      @user_bookmarks = @user.bookmarks
      @liked_bookmarks = @user.likes
    end
  
    def update
      if current_user.update_attributes(user_params)
        flash[:notice] = &quot;User information updated&quot;
        redirect_to edit_user_registration_path
      else
        flash[:error] = &quot;Invalid user information&quot;
        redirect_to edit_user_registration_path
      end
    end
  
    private
  
    def user_params
      params.require(:user).permit(:name, :avatar)
    end
  end
  </code></pre>
  <hr />
  <p><em>routes.rb</em>:</p>
  <pre><code>Rails.application.routes.draw do
  
    devise_for :users
    resources :users, only: [:show, :update]
  
    post :incoming, to: 'incoming#create'
  
    resources :topics do
      resources :bookmarks, except: [:index]
    end
  
    resources :bookmarks, except: [:index] do
      resources :likes, only: [:create, :destroy]
    end
  
    get 'about' =&gt; 'welcome#about'
  
    root to: 'welcome#index'
  end
  </code></pre>
  <hr />
  <p><em>user.rb</em>:</p>
  <pre><code>class User &lt; ActiveRecord::Base
    # Include default devise modules. Others available are:
    # :confirmable, :lockable, :timeoutable and :omniauthable
    devise :database_authenticatable, :registerable,
           :recoverable, :rememberable, :trackable, :validatable, :confirmable
  
    mount_uploader :avatar, AvatarUploader
    has_many :topics, dependent: :destroy
    has_many :bookmarks, dependent: :destroy
    has_many :likes, dependent: :destroy
  
    validates :name, presence: true
  
    def admin?
      role == 'admin'
    end
  
    def moderator?
      role == 'moderator'
    end
  
    def member?
      role == 'member'
    end
  
    def liked(bookmark)
      likes.where(bookmark_id: bookmark.id).first
    end
  end
  </code></pre>