質問編集履歴
4
htmlを変更しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
<input type="submit" value="送信">
|
36
36
|
|
37
|
-
|
37
|
+
<input type="reset" value="リセット">
|
38
38
|
|
39
39
|
</form>
|
40
40
|
|
3
htmlを変更しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,7 +54,7 @@
|
|
54
54
|
|
55
55
|
No route matches [POST] "/main.html"
|
56
56
|
|
57
|
-
Rails.root: C:/Users/user/
|
57
|
+
Rails.root: C:/Users/user/GROSS
|
58
58
|
|
59
59
|
|
60
60
|
|
2
エラーメッセージを表示しておきます。
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
<main>
|
22
22
|
|
23
|
-
<form action="" method="post">
|
23
|
+
<form action="main.html" method="post">
|
24
24
|
|
25
25
|
<h1>ログイン画面</h1>
|
26
26
|
|
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
<input id="num2" type="tel" name="tel" placeholder="携帯電話番号" required="true"><br>
|
32
32
|
|
33
|
-
<input id ="num
|
33
|
+
<input id ="num3"type="password" name="password" placeholder="パスワード"><br>
|
34
34
|
|
35
35
|
<input type="submit" value="送信">
|
36
36
|
|
@@ -47,3 +47,89 @@
|
|
47
47
|
```
|
48
48
|
|
49
49
|
送信ボタンを押したら、formタグのactionのURLに移動できるようにしたいです。お願いします。
|
50
|
+
|
51
|
+
(例)main.htmlのようにすると、次のようなエラーが発生しました。
|
52
|
+
|
53
|
+
> Routing Error
|
54
|
+
|
55
|
+
No route matches [POST] "/main.html"
|
56
|
+
|
57
|
+
Rails.root: C:/Users/user/グループ・オン・チャット
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
Application Trace | Framework Trace | Full Trace
|
62
|
+
|
63
|
+
Routes
|
64
|
+
|
65
|
+
Routes match in priority from top to bottom
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
Helper HTTP Verb Path Controller#Action
|
70
|
+
|
71
|
+
Path / Url
|
72
|
+
|
73
|
+
Path Match
|
74
|
+
|
75
|
+
users1_path GET /users1(.:format)
|
76
|
+
|
77
|
+
users1#index
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
users1_new_path GET /users1/new(.:format)
|
82
|
+
|
83
|
+
users1#new
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
rails_service_blob_path GET /rails/active_storage/blobs/:signed_id/*filename(.:format)
|
88
|
+
|
89
|
+
active_storage/blobs#show
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
rails_blob_representation_path GET /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format)
|
94
|
+
|
95
|
+
active_storage/representations#show
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
rails_disk_service_path GET /rails/active_storage/disk/:encoded_key/*filename(.:format)
|
100
|
+
|
101
|
+
active_storage/disk#show
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
update_rails_disk_service_path PUT /rails/active_storage/disk/:encoded_token(.:format)
|
106
|
+
|
107
|
+
active_storage/disk#update
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
rails_direct_uploads_path POST /rails/active_storage/direct_uploads(.:format)
|
112
|
+
|
113
|
+
active_storage/direct_uploads#create
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
Request
|
118
|
+
|
119
|
+
Parameters:
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
{"name"=>"力士", "tel"=>"0900", "password"=>"[FILTERED]"}
|
124
|
+
|
125
|
+
Toggle session dump
|
126
|
+
|
127
|
+
Toggle env dump
|
128
|
+
|
129
|
+
Response
|
130
|
+
|
131
|
+
Headers:
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
None
|
1
cssは関係ありませんでした。
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|