質問編集履歴

2

routes.rbを追加しました。

2019/11/17 04:59

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -218,6 +218,42 @@
218
218
 
219
219
 
220
220
 
221
+ routes.rb
222
+
223
+ ```
224
+
225
+ Rails.application.routes.draw do
226
+
227
+ devise_for :users
228
+
229
+
230
+
231
+ get root 'top#top'
232
+
233
+
234
+
235
+ get '/home/about', to: 'top#home'
236
+
237
+
238
+
239
+ resources :users
240
+
241
+
242
+
243
+ resources :books
244
+
245
+
246
+
247
+
248
+
249
+ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
250
+
251
+ end
252
+
253
+ ```
254
+
255
+
256
+
221
257
  $ rake routes
222
258
 
223
259
  ```

1

ルーティングを追加しました。

2019/11/17 04:58

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -215,3 +215,81 @@
215
215
  <%= render 'shared/footer' %>
216
216
 
217
217
  ```
218
+
219
+
220
+
221
+ $ rake routes
222
+
223
+ ```
224
+
225
+ Prefix Verb URI Pattern Controller#Action
226
+
227
+ new_user_session GET /users/sign_in(.:format) devise/sessions#new
228
+
229
+ user_session POST /users/sign_in(.:format) devise/sessions#create
230
+
231
+ destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
232
+
233
+ new_user_password GET /users/password/new(.:format) devise/passwords#new
234
+
235
+ edit_user_password GET /users/password/edit(.:format) devise/passwords#edit
236
+
237
+ user_password PATCH /users/password(.:format) devise/passwords#update
238
+
239
+ PUT /users/password(.:format) devise/passwords#update
240
+
241
+ POST /users/password(.:format) devise/passwords#create
242
+
243
+ cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel
244
+
245
+ new_user_registration GET /users/sign_up(.:format) devise/registrations#new
246
+
247
+ edit_user_registration GET /users/edit(.:format) devise/registrations#edit
248
+
249
+ user_registration PATCH /users(.:format) devise/registrations#update
250
+
251
+ PUT /users(.:format) devise/registrations#update
252
+
253
+ DELETE /users(.:format) devise/registrations#destroy
254
+
255
+ POST /users(.:format) devise/registrations#create
256
+
257
+ root GET / top#top
258
+
259
+ home_about GET /home/about(.:format) top#home
260
+
261
+ users GET /users(.:format) users#index
262
+
263
+ POST /users(.:format) users#create
264
+
265
+ new_user GET /users/new(.:format) users#new
266
+
267
+ edit_user GET /users/:id/edit(.:format) users#edit
268
+
269
+ user GET /users/:id(.:format) users#show
270
+
271
+ PATCH /users/:id(.:format) users#update
272
+
273
+ PUT /users/:id(.:format) users#update
274
+
275
+ DELETE /users/:id(.:format) users#destroy
276
+
277
+ books GET /books(.:format) books#index
278
+
279
+ POST /books(.:format) books#create
280
+
281
+ new_book GET /books/new(.:format) books#new
282
+
283
+ edit_book GET /books/:id/edit(.:format) books#edit
284
+
285
+ book GET /books/:id(.:format) books#show
286
+
287
+ PATCH /books/:id(.:format) books#update
288
+
289
+ PUT /books/:id(.:format) books#update
290
+
291
+ DELETE /books/:id(.:format) books#destroy
292
+
293
+ refile_app /attachments #<Refile::App app_file="/home/ec2-user/.rvm/gems/ruby-2.6.3/bundler/gems/refile-46b4178654e6/lib/refile/app.rb">
294
+
295
+ ```