質問編集履歴
5
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -39,10 +39,26 @@
|
|
39
39
|
|
40
40
|
tasks_controller.rbの中身↓
|
41
41
|
|
42
|
+
```
|
42
|
-
|
43
|
+
class TasksController < ApplicationController
|
44
|
+
def index
|
45
|
+
end
|
46
|
+
|
47
|
+
def show
|
48
|
+
end
|
49
|
+
|
50
|
+
def new
|
51
|
+
end
|
52
|
+
|
53
|
+
def edit
|
54
|
+
end
|
55
|
+
end
|
56
|
+
~
|
57
|
+
```
|
43
58
|
|
44
59
|
### 試したこと
|
45
60
|
index.html.slimでは動かないのでしょうか。
|
61
|
+
|
46
62
|
|
47
63
|
### 補足情報(FW/ツールのバージョンなど)
|
48
64
|
ruby 3.0.4p208
|
4
tasks_controller.rbの画像を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,8 +36,12 @@
|
|
36
36
|
config/routers.rbの中身↓
|
37
37
|
|
38
38
|

|
39
|
+
|
40
|
+
tasks_controller.rbの中身↓
|
41
|
+
|
42
|
+

|
43
|
+
|
39
44
|
### 試したこと
|
40
|
-
|
41
45
|
index.html.slimでは動かないのでしょうか。
|
42
46
|
|
43
47
|
### 補足情報(FW/ツールのバージョンなど)
|
3
エラーメッセージを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -52,13 +52,7 @@
|
|
52
52
|
|
53
53
|
|
54
54
|
エラーメッセージを追記します。
|
55
|
-
|
56
|
-
|
57
|
-
|
55
|
+
```rails
|
58
|
-
=> Rails 7.0.4 application starting in development
|
59
|
-
=> Run `bin/rails server --help` for more startup options
|
60
|
-
Puma starting in single mode...
|
61
|
-
* Puma version: 5.6.5 (ruby 3.0.4-p208) ("Birdie's Version")
|
62
56
|
|
63
57
|
ActionController::MissingExactTemplate (TasksController#index is missing a template for request formats: text/html):
|
64
58
|
|
@@ -141,3 +135,5 @@
|
|
141
135
|
puma (5.6.5) lib/puma/request.rb:76:in `handle_request'
|
142
136
|
puma (5.6.5) lib/puma/server.rb:443:in `process_client'
|
143
137
|
puma (5.6.5) lib/puma/thread_pool.rb:147:in `block in spawn_thread'
|
138
|
+
ActionController::MissingExactTemplate (TasksController#index is missing a template for request formats: text/html):ActionController::MissingExactTemplate (TasksController#index is missing a template for request formats: text/html):ActionController::MissingExactTemplate (TasksController#index is missing a template for request formats: text/html):
|
139
|
+
```
|
2
エラーメッセージを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,5 +50,94 @@
|
|
50
50
|
slim-rails (3.5.1)
|
51
51
|
|
52
52
|
|
53
|
-
ここにより詳細な情報を記載してください。
|
54
53
|
|
54
|
+
エラーメッセージを追記します。
|
55
|
+
|
56
|
+
|
57
|
+
=> Booting Puma
|
58
|
+
=> Rails 7.0.4 application starting in development
|
59
|
+
=> Run `bin/rails server --help` for more startup options
|
60
|
+
Puma starting in single mode...
|
61
|
+
* Puma version: 5.6.5 (ruby 3.0.4-p208) ("Birdie's Version")
|
62
|
+
|
63
|
+
ActionController::MissingExactTemplate (TasksController#index is missing a template for request formats: text/html):
|
64
|
+
|
65
|
+
actionpack (7.0.4) lib/action_controller/metal/implicit_render.rb:45:in `default_render'
|
66
|
+
actionpack (7.0.4) lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action'
|
67
|
+
<internal:kernel>:90:in `tap'
|
68
|
+
actionpack (7.0.4) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
|
69
|
+
actionpack (7.0.4) lib/abstract_controller/base.rb:215:in `process_action'
|
70
|
+
actionpack (7.0.4) lib/action_controller/metal/rendering.rb:53:in `process_action'
|
71
|
+
actionpack (7.0.4) lib/abstract_controller/callbacks.rb:234:in `block in process_action'
|
72
|
+
activesupport (7.0.4) lib/active_support/callbacks.rb:118:in `block in run_callbacks'
|
73
|
+
actiontext (7.0.4) lib/action_text/rendering.rb:20:in `with_renderer'
|
74
|
+
actiontext (7.0.4) lib/action_text/engine.rb:69:in `block (4 levels) in <class:Engine>'
|
75
|
+
activesupport (7.0.4) lib/active_support/callbacks.rb:127:in `instance_exec'
|
76
|
+
activesupport (7.0.4) lib/active_support/callbacks.rb:127:in `block in run_callbacks'
|
77
|
+
activesupport (7.0.4) lib/active_support/callbacks.rb:138:in `run_callbacks'
|
78
|
+
actionpack (7.0.4) lib/abstract_controller/callbacks.rb:233:in `process_action'
|
79
|
+
actionpack (7.0.4) lib/action_controller/metal/rescue.rb:22:in `process_action'
|
80
|
+
actionpack (7.0.4) lib/action_controller/metal/instrumentation.rb:67:in `block in process_action'
|
81
|
+
activesupport (7.0.4) lib/active_support/notifications.rb:206:in `block in instrument'
|
82
|
+
activesupport (7.0.4) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
|
83
|
+
activesupport (7.0.4) lib/active_support/notifications.rb:206:in `instrument'
|
84
|
+
actionpack (7.0.4) lib/action_controller/metal/instrumentation.rb:66:in `process_action'
|
85
|
+
actionpack (7.0.4) lib/action_controller/metal/params_wrapper.rb:259:in `process_action'
|
86
|
+
activerecord (7.0.4) lib/active_record/railties/controller_runtime.rb:27:in `process_action'
|
87
|
+
actionpack (7.0.4) lib/abstract_controller/base.rb:151:in `process'
|
88
|
+
actionview (7.0.4) lib/action_view/rendering.rb:39:in `process'
|
89
|
+
actionpack (7.0.4) lib/action_controller/metal.rb:188:in `dispatch'
|
90
|
+
actionpack (7.0.4) lib/action_controller/metal.rb:251:in `dispatch'
|
91
|
+
actionpack (7.0.4) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
|
92
|
+
actionpack (7.0.4) lib/action_dispatch/routing/route_set.rb:32:in `serve'
|
93
|
+
actionpack (7.0.4) lib/action_dispatch/journey/router.rb:50:in `block in serve'
|
94
|
+
actionpack (7.0.4) lib/action_dispatch/journey/router.rb:32:in `each'
|
95
|
+
actionpack (7.0.4) lib/action_dispatch/journey/router.rb:32:in `serve'
|
96
|
+
actionpack (7.0.4) lib/action_dispatch/routing/route_set.rb:852:in `call'
|
97
|
+
rack (2.2.4) lib/rack/tempfile_reaper.rb:15:in `call'
|
98
|
+
rack (2.2.4) lib/rack/etag.rb:27:in `call'
|
99
|
+
rack (2.2.4) lib/rack/conditional_get.rb:27:in `call'
|
100
|
+
rack (2.2.4) lib/rack/head.rb:12:in `call'
|
101
|
+
actionpack (7.0.4) lib/action_dispatch/http/permissions_policy.rb:38:in `call'
|
102
|
+
actionpack (7.0.4) lib/action_dispatch/http/content_security_policy.rb:36:in `call'
|
103
|
+
rack (2.2.4) lib/rack/session/abstract/id.rb:266:in `context'
|
104
|
+
rack (2.2.4) lib/rack/session/abstract/id.rb:260:in `call'
|
105
|
+
actionpack (7.0.4) lib/action_dispatch/middleware/cookies.rb:696:in `call'
|
106
|
+
activerecord (7.0.4) lib/active_record/migration.rb:603:in `call'
|
107
|
+
actionpack (7.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
|
108
|
+
activesupport (7.0.4) lib/active_support/callbacks.rb:99:in `run_callbacks'
|
109
|
+
actionpack (7.0.4) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
|
110
|
+
actionpack (7.0.4) lib/action_dispatch/middleware/executor.rb:14:in `call'
|
111
|
+
actionpack (7.0.4) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call'
|
112
|
+
actionpack (7.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'
|
113
|
+
web-console (4.2.0) lib/web_console/middleware.rb:132:in `call_app'
|
114
|
+
web-console (4.2.0) lib/web_console/middleware.rb:28:in `block in call'
|
115
|
+
web-console (4.2.0) lib/web_console/middleware.rb:17:in `catch'
|
116
|
+
web-console (4.2.0) lib/web_console/middleware.rb:17:in `call'
|
117
|
+
actionpack (7.0.4) lib/action_dispatch/middleware/show_exceptions.rb:26:in `call'
|
118
|
+
railties (7.0.4) lib/rails/rack/logger.rb:40:in `call_app'
|
119
|
+
railties (7.0.4) lib/rails/rack/logger.rb:25:in `block in call'
|
120
|
+
activesupport (7.0.4) lib/active_support/tagged_logging.rb:99:in `block in tagged'
|
121
|
+
activesupport (7.0.4) lib/active_support/tagged_logging.rb:37:in `tagged'
|
122
|
+
activesupport (7.0.4) lib/active_support/tagged_logging.rb:99:in `tagged'
|
123
|
+
railties (7.0.4) lib/rails/rack/logger.rb:25:in `call'
|
124
|
+
sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in `call'
|
125
|
+
actionpack (7.0.4) lib/action_dispatch/middleware/remote_ip.rb:93:in `call'
|
126
|
+
actionpack (7.0.4) lib/action_dispatch/middleware/request_id.rb:26:in `call'
|
127
|
+
rack (2.2.4) lib/rack/method_override.rb:24:in `call'
|
128
|
+
rack (2.2.4) lib/rack/runtime.rb:22:in `call'
|
129
|
+
activesupport (7.0.4) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
|
130
|
+
actionpack (7.0.4) lib/action_dispatch/middleware/server_timing.rb:61:in `block in call'
|
131
|
+
actionpack (7.0.4) lib/action_dispatch/middleware/server_timing.rb:26:in `collect_events'
|
132
|
+
actionpack (7.0.4) lib/action_dispatch/middleware/server_timing.rb:60:in `call'
|
133
|
+
actionpack (7.0.4) lib/action_dispatch/middleware/executor.rb:14:in `call'
|
134
|
+
actionpack (7.0.4) lib/action_dispatch/middleware/static.rb:23:in `call'
|
135
|
+
rack (2.2.4) lib/rack/sendfile.rb:110:in `call'
|
136
|
+
actionpack (7.0.4) lib/action_dispatch/middleware/host_authorization.rb:137:in `call'
|
137
|
+
railties (7.0.4) lib/rails/engine.rb:530:in `call'
|
138
|
+
puma (5.6.5) lib/puma/configuration.rb:252:in `call'
|
139
|
+
puma (5.6.5) lib/puma/request.rb:77:in `block in handle_request'
|
140
|
+
puma (5.6.5) lib/puma/thread_pool.rb:340:in `with_force_shutdown'
|
141
|
+
puma (5.6.5) lib/puma/request.rb:76:in `handle_request'
|
142
|
+
puma (5.6.5) lib/puma/server.rb:443:in `process_client'
|
143
|
+
puma (5.6.5) lib/puma/thread_pool.rb:147:in `block in spawn_thread'
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -3,39 +3,43 @@
|
|
3
3
|
No template for interactive request
|
4
4
|
と表示されてしまう。
|
5
5
|
|
6
|
-
|
6
|
+

|
7
|
-
|
7
|
+
|
8
|
+
|
8
9
|
|
9
10
|
|
10
11
|
|
11
12
|
### 実現したいこと
|
13
|
+
現場で使えるRuby on Rails 速習実践ガイド
|
14
|
+
タスク管理アプリケーションを作成しています。
|
12
15
|
|
13
|
-
slimを利用してページを表示させたい。
|
16
|
+
slimを利用してページを表示させたいです。
|
14
17
|
|
15
18
|
### 発生している問題・エラーメッセージ
|
16
19
|
サーバーを起動してページを開くと以下のメッセージが表示される。
|
17
20
|
ページ上↓
|
18
21
|
No template for interactive request
|
19
22
|
TasksController#index is missing a template for request formats: text/html
|
23
|
+
|
24
|
+
|
20
25
|
ubuntu上↓
|
21
26
|
```
|
27
|
+
### エラーメッセージ
|
22
28
|
ActionController::MissingExactTemplate (TasksController#index is missing a template for request formats: text/html)
|
23
29
|
|
24
|
-
エラーメッセージ
|
25
30
|
```
|
26
31
|
|
27
|
-
|
32
|
+
ファイルの保存場所は正しいかと思います。
|
28
33
|
|
29
|
-
```ここに言語名を入力
|
30
|
-
ソースコード
|
31
|
-
```
|
32
34
|

|
35
|
+
|
36
|
+
config/routers.rbの中身↓
|
33
37
|
|
34
38
|

|
35
39
|
### 試したこと
|
36
|
-
|
40
|
+
|
37
41
|
index.html.slimでは動かないのでしょうか。
|
38
|
-
|
42
|
+
|
39
43
|
### 補足情報(FW/ツールのバージョンなど)
|
40
44
|
ruby 3.0.4p208
|
41
45
|
Rails 7.0.4
|