Home>

I want to fill in "user information (name/introduction)" and "post form" in the html of the partial template and use it in index.html.erb that supports the "books" controller, but user information (name/introduction) I don't know how to reflect the introduction) well.
(name/introduction is registered as a column of User model)

How can the name and introduction be reflected in the following partial template that is currently being created? (The arrow is attached to the relevant part in the html of the template below)
Thanks for your guidance.
(If i have any questions about the contents of the explanation, we would appreciate it if you could ask a question.)

<table>
<tr>
  <td><% = book.user.name%></td>
</tr>
<tr>
  <td>name</td>
  <td><% =%></td>
           ↑ Here
</tr>
<tr>
  <td>introduction</td>
  <td><% =%></td>
↑ Here
</tr>
</table>

 New book 
<% = form_with model: book, local: true do | f |%>
   Title 
<% = f.text_field: title%>
   Opinion 
<% = f.text_area: body%>
<% = f.submit'Create Book'%>
<% end%>
<% = render'layouts/list', book: Book.new%>
 Books 
<table>
<thead>
  <tr>
    <th>Title</th>
    <th>Opinion</th>
  </tr>
</header>
<tbody>
  <% @ books.each do | book |%>
  <tr>
    <td><% = image_tag ('sample-author1.jpg')%></td>
    <td>
      <% = link_to book_path (book) do%>
        <% = book.title%>
      <% end%>
    </td>
    <td><% = book.body%></td>
  </tr>
  <% end%>
</tbody>
</table>
class BooksController  nil
  end
  def update
    @book = Book.find (params [: id])
    Book.update (book_params)
    redirect_to book_path (@book)
  end
  def destroy
    @book = Book.find (params [: id])
    @ book.destroy
    redirect_to books_path
  end
  private
  def book_params
    params.require (: book) .permit (: title,: body)
  end
end