質問編集履歴
1
文章を編集しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
def show
|
10
10
|
|
11
|
-
|
11
|
+
@user = @book.user
|
12
12
|
|
13
13
|
end
|
14
14
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
```
|
20
20
|
|
21
|
-
<%= link_to edit_user_path
|
21
|
+
<%= link_to edit_user_path(@book.user), class: "btn btn-default" do %>
|
22
22
|
|
23
23
|
```
|
24
24
|
|
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
```
|
28
28
|
|
29
|
-
<%= link_to book.title,
|
29
|
+
<%= link_to book.title, book_path(book.id) %>
|
30
30
|
|
31
31
|
```
|
32
32
|
|
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
<th>name</th>
|
42
42
|
|
43
|
-
<th><%=
|
43
|
+
<th><%= current_user.name %></th>
|
44
44
|
|
45
45
|
</tr>
|
46
46
|
|
@@ -48,7 +48,7 @@
|
|
48
48
|
|
49
49
|
<th>introduction</th>
|
50
50
|
|
51
|
-
<th><%=
|
51
|
+
<th><%= current_user.introduction %></th>
|
52
52
|
|
53
53
|
</tr>
|
54
54
|
|