質問編集履歴
2
Gemfile,application.html.erb,_head.html.erbを追記しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -72,4 +72,84 @@
|
|
72
72
|
rails (6.0.2.1)
|
73
73
|
webpacker (5.0.1)
|
74
74
|
|
75
|
-
ご回答のほどお待ちしております。よろしくお願いいたします。
|
75
|
+
ご回答のほどお待ちしております。よろしくお願いいたします。
|
76
|
+
|
77
|
+
### 追記
|
78
|
+
|
79
|
+
以下、追記いたします。
|
80
|
+
|
81
|
+
gem
|
82
|
+
```Gemfile
|
83
|
+
source 'https://rubygems.org'
|
84
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
85
|
+
|
86
|
+
ruby '2.6.3'
|
87
|
+
gem 'rails', '~> 6.0.2', '>= 6.0.2.1'
|
88
|
+
gem 'bcrypt'
|
89
|
+
gem 'faker'
|
90
|
+
gem 'carrierwave'
|
91
|
+
gem 'mini_magick'
|
92
|
+
gem 'will_paginate'
|
93
|
+
gem 'bootstrap-will_paginate'
|
94
|
+
gem 'puma', '~> 4.1'
|
95
|
+
gem 'bootstrap-sass'
|
96
|
+
gem 'sass-rails', '>= 6'
|
97
|
+
gem 'bootstrap'
|
98
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
99
|
+
gem 'webpacker'
|
100
|
+
gem 'turbolinks', '~> 5'
|
101
|
+
gem 'jbuilder', '~> 2.7'
|
102
|
+
gem 'bootsnap', '>= 1.4.2', require: false
|
103
|
+
gem 'rails-i18n'
|
104
|
+
gem 'counter_culture'
|
105
|
+
|
106
|
+
group :development, :test do
|
107
|
+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
108
|
+
gem 'rspec-rails'
|
109
|
+
gem 'sqlite3', '~> 1.4', require: false
|
110
|
+
gem 'factory_bot_rails'
|
111
|
+
end
|
112
|
+
|
113
|
+
group :development do
|
114
|
+
gem 'web-console', '>= 3.3.0'
|
115
|
+
gem 'listen', '>= 3.0.5', '< 3.2'
|
116
|
+
gem 'spring'
|
117
|
+
gem 'spring-watcher-listen', '~> 2.0.0'
|
118
|
+
end
|
119
|
+
|
120
|
+
group :production do
|
121
|
+
gem 'pg'
|
122
|
+
gem 'fog'
|
123
|
+
end
|
124
|
+
```
|
125
|
+
|
126
|
+
application.html.erb
|
127
|
+
```
|
128
|
+
<!DOCTYPE html>
|
129
|
+
<html>
|
130
|
+
<%= render 'layouts/head' %>
|
131
|
+
<body>
|
132
|
+
<%= render 'layouts/header' %>
|
133
|
+
<div class="container">
|
134
|
+
<% flash.each do |message_type, message| %>
|
135
|
+
<div class="alert alert-<%= message_type %>"><%= message %></div>
|
136
|
+
<% end %>
|
137
|
+
<%= yield %>
|
138
|
+
<%= debug(params) if Rails.env.development? %>
|
139
|
+
</div>
|
140
|
+
</body>
|
141
|
+
</html>
|
142
|
+
```
|
143
|
+
|
144
|
+
_head.html.erb
|
145
|
+
```
|
146
|
+
<head>
|
147
|
+
<title><%= full_title(yield(:title)) %></title>
|
148
|
+
<%= csrf_meta_tags %>
|
149
|
+
<%= csp_meta_tag %>
|
150
|
+
<%= stylesheet_pack_tag 'custom', media: 'all', 'data-turbolinks-track': 'reload' %>
|
151
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
152
|
+
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
153
|
+
<%= render 'layouts/shim' %>
|
154
|
+
</head>
|
155
|
+
```
|
1
誤字の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
heroku logsでエラーメッセージを探りました。
|
10
10
|
直接エラーに関する記述があると思われるのは以下の二箇所です(抜粋)。
|
11
11
|
```
|
12
|
-
2020-04-13T12:16:43.617300+00:00 heroku[router]: at=info method=GET path="/" host=portgram.herokuapp.com request_id=749089d5-314b-4500-a291-79093b380583 fwd="
|
12
|
+
2020-04-13T12:16:43.617300+00:00 heroku[router]: at=info method=GET path="/" host=portgram.herokuapp.com request_id=749089d5-314b-4500-a291-79093b380583 fwd="#.#.#.#" dyno=web.1 connect=0ms service=17ms status=500 bytes=1891 protocol=https
|
13
13
|
```
|
14
14
|
|
15
15
|
```
|