Home>

I am a beginner who has been studying for 2 weeks.
I am creating a profile page for a home page that is ruby ​​on rails.

in user_controller.rb

def show
    @user = User.find(params[:id])
    @post_images = @user.post_images.page(params[:page]).reverse_order
end

in routes.rb

resources :users, only: [:show, :edit, :update]

in show.html.erb

User info

<%= @user.name %>
<%= attachment_image_tag @user, :profile_image, :fill, 100, 100, format:'jpeg', class: "img-circle pull-left profile-img", fallback: "no_image.jpg" %>
  <% if @user.id == current_user.id %>
    <p><%= link_to "EDIT, edit_user_path(user), class: "pull-right" %></p>
  <% end %>

I said
I got an error like this.
I did a lot of research, but I don't know how to solve it, and I would appreciate it if you could tell me something.