質問編集履歴
1
route.rbのコード追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,6 +42,22 @@
|
|
42
42
|
|
43
43
|
```
|
44
44
|
|
45
|
+
```ruby
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
Rails.application.routes.draw do
|
50
|
+
|
51
|
+
devise_for :users
|
52
|
+
|
53
|
+
root to: "books#index"
|
54
|
+
|
55
|
+
resources :books, only:[:index,:new,:create,:show,:edit,:update,:destroy]
|
56
|
+
|
57
|
+
end
|
58
|
+
|
59
|
+
````
|
60
|
+
|
45
61
|
```ruby
|
46
62
|
|
47
63
|
<%= link_to "削除する", books_path(@book.id),method: :delete %>
|