質問編集履歴

2

訂正

2018/11/21 08:13

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -186,8 +186,6 @@
186
186
 
187
187
 
188
188
 
189
- root to: 'pages#home'
190
-
191
189
  devise_for :users
192
190
 
193
191
 

1

コードの追記

2018/11/21 08:13

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -177,3 +177,37 @@
177
177
  </html>
178
178
 
179
179
  ```
180
+
181
+
182
+
183
+ ```ruby
184
+
185
+ Rails.application.routes.draw do
186
+
187
+
188
+
189
+ root to: 'pages#home'
190
+
191
+ devise_for :users
192
+
193
+
194
+
195
+ get "users/index" => "users#index"
196
+
197
+ # showアクションへのルーティングを追加してください
198
+
199
+ #get "users/:id/edit" => "users#edit"
200
+
201
+ get "users/:id" => "users#show"
202
+
203
+
204
+
205
+ get "/" => "home#top"
206
+
207
+ get "about" => "home#about"
208
+
209
+ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
210
+
211
+ end
212
+
213
+ ```