質問するログイン新規登録

質問編集履歴

4

htmlを変更しました

2019/07/13 02:54

投稿

doragonzakurai
doragonzakurai

スコア12

title CHANGED
File without changes
body CHANGED
@@ -16,7 +16,7 @@
16
16
  <input id="num2" type="tel" name="tel" placeholder="携帯電話番号" required="true"><br>
17
17
  <input id ="num3"type="password" name="password" placeholder="パスワード"><br>
18
18
  <input type="submit" value="送信">
19
-    <input type="reset" value="リセット">
19
+ <input type="reset" value="リセット">
20
20
  </form>
21
21
  </main>
22
22
  </body>

3

htmlを変更しました

2019/07/13 02:54

投稿

doragonzakurai
doragonzakurai

スコア12

title CHANGED
File without changes
body CHANGED
@@ -26,7 +26,7 @@
26
26
  (例)main.htmlのようにすると、次のようなエラーが発生しました。
27
27
  > Routing Error
28
28
  No route matches [POST] "/main.html"
29
- Rails.root: C:/Users/user/グループ・オン・チャット
29
+ Rails.root: C:/Users/user/GROSS
30
30
 
31
31
  Application Trace | Framework Trace | Full Trace
32
32
  Routes

2

エラーメッセージを表示しておきます。

2019/07/13 02:51

投稿

doragonzakurai
doragonzakurai

スコア12

title CHANGED
File without changes
body CHANGED
@@ -9,12 +9,12 @@
9
9
  <h1 id="num1">Hello</h1>
10
10
  </header>
11
11
  <main>
12
- <form action="" method="post">
12
+ <form action="main.html" method="post">
13
13
  <h1>ログイン画面</h1>
14
14
  <input type="text" name="name" placeholder="姓" required="true">
15
15
  <input type="text" name="name" placeholder="名" required="true"><br>
16
16
  <input id="num2" type="tel" name="tel" placeholder="携帯電話番号" required="true"><br>
17
- <input id ="num2"type="password" name="password" placeholder="パスワード"><br>
17
+ <input id ="num3"type="password" name="password" placeholder="パスワード"><br>
18
18
  <input type="submit" value="送信">
19
19
     <input type="reset" value="リセット">
20
20
  </form>
@@ -22,4 +22,47 @@
22
22
  </body>
23
23
  </html>
24
24
  ```
25
- 送信ボタンを押したら、formタグのactionのURLに移動できるようにしたいです。お願いします。
25
+ 送信ボタンを押したら、formタグのactionのURLに移動できるようにしたいです。お願いします。
26
+ (例)main.htmlのようにすると、次のようなエラーが発生しました。
27
+ > Routing Error
28
+ No route matches [POST] "/main.html"
29
+ Rails.root: C:/Users/user/グループ・オン・チャット
30
+
31
+ Application Trace | Framework Trace | Full Trace
32
+ Routes
33
+ Routes match in priority from top to bottom
34
+
35
+ Helper HTTP Verb Path Controller#Action
36
+ Path / Url
37
+ Path Match
38
+ users1_path GET /users1(.:format)
39
+ users1#index
40
+
41
+ users1_new_path GET /users1/new(.:format)
42
+ users1#new
43
+
44
+ rails_service_blob_path GET /rails/active_storage/blobs/:signed_id/*filename(.:format)
45
+ active_storage/blobs#show
46
+
47
+ rails_blob_representation_path GET /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format)
48
+ active_storage/representations#show
49
+
50
+ rails_disk_service_path GET /rails/active_storage/disk/:encoded_key/*filename(.:format)
51
+ active_storage/disk#show
52
+
53
+ update_rails_disk_service_path PUT /rails/active_storage/disk/:encoded_token(.:format)
54
+ active_storage/disk#update
55
+
56
+ rails_direct_uploads_path POST /rails/active_storage/direct_uploads(.:format)
57
+ active_storage/direct_uploads#create
58
+
59
+ Request
60
+ Parameters:
61
+
62
+ {"name"=>"力士", "tel"=>"0900", "password"=>"[FILTERED]"}
63
+ Toggle session dump
64
+ Toggle env dump
65
+ Response
66
+ Headers:
67
+
68
+ None

1

cssは関係ありませんでした。

2019/07/13 02:46

投稿

doragonzakurai
doragonzakurai

スコア12

title CHANGED
File without changes
body CHANGED
File without changes