teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

文章を編集しました。

2019/12/21 08:07

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -3,27 +3,27 @@
3
3
 
4
4
  ```
5
5
  def show
6
- **@user = @book.user**
6
+ @user = @book.user
7
7
  end
8
8
  ```
9
9
 
10
10
  ```
11
- <%= link_to edit_user_path**(@book.user)**, class: "btn btn-default" do %>
11
+ <%= link_to edit_user_path(@book.user), class: "btn btn-default" do %>
12
12
  ```
13
13
 
14
14
  ```
15
- <%= link_to book.title, **book_path(book.id)** %>
15
+ <%= link_to book.title, book_path(book.id) %>
16
16
  ```
17
17
 
18
18
  ```
19
19
  <table class="table">
20
20
   <tr>
21
21
    <th>name</th>
22
-   <th><%= **current_user.name** %></th>
22
+   <th><%= current_user.name %></th>
23
23
   </tr>
24
24
   <tr>
25
25
    <th>introduction</th>
26
-   <th><%= **current_user.introduction** %></th>
26
+   <th><%= current_user.introduction %></th>
27
27
   </tr>
28
28
  </table>
29
29
  ```