質問編集履歴

2

誤字修正

2021/07/26 10:47

投稿

NaoyaAbe
NaoyaAbe

スコア3

test CHANGED
File without changes
test CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  ### 試したこと
40
40
 
41
- ・```= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'false'```
41
+ ・```= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'```
42
42
 
43
43
  この行をapplication.html.hamlの<head>タグ内の一番上に配置
44
44
 
@@ -46,7 +46,7 @@
46
46
 
47
47
 
48
48
 
49
- ・```= javascript_include_tag 'application', 'data-turbolinks-track': 'false'```
49
+ ・```= javascript_include_tag 'application', 'data-turbolinks-track': 'reload'```
50
50
 
51
51
  この行を<head>タグ内に移動(現在、Bodyタグ最下部に配置している)
52
52
 
@@ -86,7 +86,7 @@
86
86
 
87
87
  = csp_meta_tag
88
88
 
89
- = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'false'
89
+ = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
90
90
 
91
91
  %body
92
92
 
@@ -104,7 +104,7 @@
104
104
 
105
105
  .p-5= debug(params) if Rails.env.development?
106
106
 
107
- = javascript_include_tag 'application', 'data-turbolinks-track': 'false'
107
+ = javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
108
108
 
109
109
 
110
110
 

1

必要な情報追加

2021/07/26 10:47

投稿

NaoyaAbe
NaoyaAbe

スコア3

test CHANGED
File without changes
test CHANGED
@@ -114,7 +114,9 @@
114
114
 
115
115
  ```
116
116
 
117
- ****
117
+ **app/assets/stylesheets/application.scss**
118
+
119
+
118
120
 
119
121
  /*
120
122
 
@@ -209,3 +211,209 @@
209
211
 
210
212
 
211
213
  ```
214
+
215
+
216
+
217
+ ```
218
+
219
+ **app/assets/javascripts/application.js**
220
+
221
+
222
+
223
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
224
+
225
+ // listed below.
226
+
227
+ //
228
+
229
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
230
+
231
+ // vendor/assets/javascripts directory can be referenced here using a relative path.
232
+
233
+ //
234
+
235
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
236
+
237
+ // compiled file. JavaScript code in this file should be added after the last require_* statement.
238
+
239
+ //
240
+
241
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
242
+
243
+ // about supported directives.
244
+
245
+ //
246
+
247
+ //= require rails-ujs
248
+
249
+ //= require activestorage
250
+
251
+ //= require turbolinks
252
+
253
+ //= require jquery3
254
+
255
+ //= require popper
256
+
257
+ //= require bootstrap
258
+
259
+ //= require_tree .
260
+
261
+
262
+
263
+
264
+
265
+ ```
266
+
267
+
268
+
269
+ ```ここに言語を入力
270
+
271
+ **app/assets/stylesheets/custom.scss**
272
+
273
+
274
+
275
+ @import "bootstrap_custom";
276
+
277
+ /* --共通変数-------------------------- */
278
+
279
+ $header-height: 56px;
280
+
281
+ /* --共通設定-------------------------- */
282
+
283
+ body{
284
+
285
+ background-color: lightgray;
286
+
287
+ }
288
+
289
+ form {
290
+
291
+ width: 100%;
292
+
293
+ }
294
+
295
+ .main-container-fluid {
296
+
297
+ min-height: 100vh;
298
+
299
+ margin-top: $header-height;
300
+
301
+ padding: 0;
302
+
303
+ }
304
+
305
+ .main-container-fluid > .container {
306
+
307
+ padding-top: 50px;
308
+
309
+ padding-bottom: 50px;p
310
+
311
+ }
312
+
313
+ a {
314
+
315
+ text-decoration: none !important;
316
+
317
+ color: black;
318
+
319
+ opacity: 1.0;
320
+
321
+ &:hover {
322
+
323
+ opacity: 0.8;
324
+
325
+ color: $info; ------------------------------ここでエラー発生!
326
+
327
+ }
328
+
329
+ }
330
+
331
+
332
+
333
+ ```
334
+
335
+
336
+
337
+ 現在のディレクトリ構造は下の画像のようになっています。
338
+
339
+ ![イメージ説明](2f24eca28afa558e47e06657bafbe12f.png)
340
+
341
+
342
+
343
+
344
+
345
+ ### 開発環境
346
+
347
+ ```ここに言語を入力
348
+
349
+ **Gemfile**
350
+
351
+
352
+
353
+ ruby '2.6.6'
354
+
355
+
356
+
357
+ gem 'bootsnap', '>= 1.1.0', require: false
358
+
359
+ gem 'bootstrap', '~> 4.3.1'
360
+
361
+ gem 'bootstrap4-kaminari-views'
362
+
363
+ gem 'carrierwave'
364
+
365
+ gem 'coffee-rails', '~> 4.2'
366
+
367
+ gem 'counter_culture'
368
+
369
+ gem 'devise'
370
+
371
+ gem 'devise-i18n'
372
+
373
+ gem 'dotenv-rails'
374
+
375
+ gem 'haml_lint'
376
+
377
+ gem 'haml-rails'
378
+
379
+ gem 'jbuilder', '~> 2.5'
380
+
381
+ gem 'jquery-rails'
382
+
383
+ gem 'kaminari'
384
+
385
+ gem 'mini_magick'
386
+
387
+ gem 'omniauth', '1.9.1'
388
+
389
+ gem 'omniauth-facebook'
390
+
391
+ gem 'omniauth-rails_csrf_protection'
392
+
393
+ gem 'puma', '~> 3.11'
394
+
395
+ gem 'rails', '~> 5.2.1'
396
+
397
+ gem 'rails-i18n', '~> 5.1'
398
+
399
+ gem 'sass-rails'
400
+
401
+ gem 'turbolinks', '~> 5'
402
+
403
+ gem 'uglifier', '>= 1.3.0'
404
+
405
+ ```
406
+
407
+
408
+
409
+ ```
410
+
411
+ Docker環境で開発しています。
412
+
413
+ ```
414
+
415
+
416
+
417
+ **追加して欲しいコードなどがあれば、お伝えください!**
418
+
419
+ **よろしくお願いいたします!**