Home>

I'm making a simple Twitter-like app.
I want to display a list of user posts when transitioning to the user details page.
I want to call a partial template page using render and retrieve all posts for that user with the collection option.
The post is not displayed now as shown in the image below.

Corresponding source code
app>views>users>show.html.erb

  
    
      
      <% = @ user.name%>
      
    <table>
      <tbody>
        <tr>
          <th>name</th>
          <td><% = @ user.name%></td>
        </tr>
        <tr>
          <th>Profile</th>
          <td><% = @ user.profile%></td>
        </tr>
        <tr>
          <th>Affiliation</th>
          <td><% = @ user.occupation%></td>
        </tr>
        <tr>
          <th>Job title</th>
          <td><% = @ user.position%></td>
        </tr>
      </tbody>
    </table>
      
      <% = "# {@ user.name}'s prototype"%>
      
      
      <% # Display a list of prototype posts posted by that user with a partial template%>
      <% = render partial: "prototypes/prototype", collection: @prototypes%>
      
    
  
app>views>prototypes>_prototepe.html.erb

<% = link_to (image_tag prototype.image.variant (resize: '500x500'), class :: card__img), prototype_path (prototype.id), method:: get%>
  
  <% = link_to prototype.title, root_path, class:: card__title%>
  <p>
    <% = prototype.catch_copy%>
  </p>
  <% = link_to "by # {prototype.user.name}", root_path, class:: card__user%>
  
What I tried

Is there a partial path?

Supplementary information (FW/tool version, etc.)

Please provide more detailed information here.