質問編集履歴

1

application.html.erbの追記

2022/09/24 10:55

投稿

yasu_2244
yasu_2244

スコア23

test CHANGED
File without changes
test CHANGED
@@ -4,6 +4,28 @@
4
4
 
5
5
  すでにUncaught Error: rails-ujs はロードされているとのことですが
6
6
  どこを直せばよいのでしょうか?
7
+ ```application.html.erb
8
+ <!DOCTYPE html>
9
+ <html>
10
+ <head>
11
+ <title><%= full_title(yield(:title)) %></title>
12
+ <%= render 'layouts/rails_default' %>
13
+ <%= render 'layouts/shim' %>
14
+ </head>
15
+ <body>
16
+ <%= render 'layouts/header' %>
17
+ <div class="container">
18
+ <% flash.each do |message_type, message| %>
19
+ <%= content_tag(:div, message, class: "alert alert-#{message_type}") %>
20
+ <%# ブロック変数に代入されているflashメッセージを表示 %>
21
+ <% end %>
22
+ <%= yield %>
23
+ <%= render 'layouts/footer' %>
24
+ <%= debug(params) if Rails.env.development? %>
25
+ </div>
26
+ </body>
27
+ </html>
28
+ ```
7
29
 
8
30
 
9
31
  ### 発生している問題・エラーメッセージ