質問編集履歴
1
編集・追記依頼により
test
CHANGED
File without changes
|
test
CHANGED
@@ -142,6 +142,30 @@
|
|
142
142
|
|
143
143
|
|
144
144
|
|
145
|
+
```ruby
|
146
|
+
|
147
|
+
Rails.application.routes.draw do
|
148
|
+
|
149
|
+
resources :boke_videos, :except => [:edit, :destroy, :update]
|
150
|
+
|
151
|
+
devise_for :users
|
152
|
+
|
153
|
+
resources :videos, :except => [:edit, :destroy, :update]
|
154
|
+
|
155
|
+
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
|
156
|
+
|
157
|
+
root 'videos#index'
|
158
|
+
|
159
|
+
post '/rate/:boke_video_id' => 'rates#rate', as: 'rate'
|
160
|
+
|
161
|
+
delete '/rate/:boke_video_id' => 'rates#unrate', as: 'unrate'
|
162
|
+
|
163
|
+
end
|
164
|
+
|
165
|
+
```
|
166
|
+
|
167
|
+
|
168
|
+
|
145
169
|
### 試したこと
|
146
170
|
|
147
171
|
|