質問編集履歴

2

変更

2018/10/02 04:23

投稿

sk2938
sk2938

スコア21

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- index.html.erbを表示したいのですが表示されません。解決方法をご教授お願いします。
1
+ index.html.erbを表示したいのですが表示されません。解決方法をご教授お願いします。rails sをしてhttp://localhost:3000/inquiries で表示したいです。
2
2
 
3
3
  ```
4
4
 

1

修正

2018/10/02 04:23

投稿

sk2938
sk2938

スコア21

test CHANGED
File without changes
test CHANGED
@@ -1,20 +1,20 @@
1
- viewが表示されません。どこでエラーになっているかわからりません。ご教授お願いします。
1
+ index.html.erbを表示したいのですが表示されません。解決方法をご教授お願いします。
2
+
3
+ ```
2
4
 
3
5
  routes.rb
4
6
 
5
-
6
-
7
7
  get 'inquiries', to: 'inquiries#index'
8
8
 
9
- post 'inquiries/confirm', to: 'inquiries#confirm'
9
+ post 'inquiries/confirm', to: 'inquiries#confirm'
10
10
 
11
- post 'inquiries/complete', to: 'inquiries#complete'
11
+ post 'inquiries/complete', to: 'inquiries#complete'
12
12
 
13
+ ```
13
14
 
15
+ ```
14
16
 
15
17
  inquiries_controller.rb
16
-
17
-
18
18
 
19
19
  class InquiriesController < ApplicationController
20
20
 
@@ -62,11 +62,11 @@
62
62
 
63
63
  end
64
64
 
65
+ ```
65
66
 
67
+ ```
66
68
 
67
69
  index.html.erb
68
-
69
-
70
70
 
71
71
  <% provide(:title, "お問い合わせ") %>
72
72
 
@@ -99,3 +99,5 @@
99
99
  <%= f.submit "確認" %>
100
100
 
101
101
  <% end %>
102
+
103
+ ```