質問編集履歴

1

Gemfileが抜けていたので追記致しました。

2019/10/22 04:28

投稿

Yuki0531-
Yuki0531-

スコア4

test CHANGED
File without changes
test CHANGED
@@ -1,5 +1,3 @@
1
- いつもお世話になっております。
2
-
3
1
  皆様大変お忙しいと存じますが、お力添えいただけますと幸いです。
4
2
 
5
3
 
@@ -22,428 +20,6 @@
22
20
 
23
21
 
24
22
 
25
-
26
-
27
- app/views/layouts/application.html.erb
28
-
29
- ```
30
-
31
- <!DOCTYPE html>
32
-
33
- <html>
34
-
35
- <head>
36
-
37
- <title>TradingVessel2</title>
38
-
39
- <%= csrf_meta_tags %>
40
-
41
- <%= csp_meta_tag %>
42
-
43
-
44
-
45
- <%= stylesheet_link_tag 'application' %>
46
-
47
- <%= javascript_include_tag 'application'%>
48
-
49
- <!-- Custom styles for this template -->
50
-
51
- <link href="https://blackrockdigital.github.io/startbootstrap-grayscale/css/grayscale.min.css" rel="stylesheet">
52
-
53
- </head>
54
-
55
-
56
-
57
- <body>
58
-
59
- <!-- Navigation -->
60
-
61
- <nav class="navbar navbar-expand-lg navbar-light fixed-top" id="mainNav">
62
-
63
- <div class="container">
64
-
65
- <a class="navbar-brand js-scroll-trigger" href="#page-top">VesselTrading</a>
66
-
67
- <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
68
-
69
- Menu
70
-
71
- <i class="fas fa-bars"></i>
72
-
73
- </button>
74
-
75
- <div class="collapse navbar-collapse" id="navbarResponsive">
76
-
77
- <ul class="navbar-nav ml-auto">
78
-
79
- <li class="nav-item">
80
-
81
- <a class="nav-link js-scroll-trigger" href="#about">About</a>
82
-
83
- </li>
84
-
85
- <li class="nav-item">
86
-
87
- <a class="nav-link js-scroll-trigger" href="#projects">Projects</a>
88
-
89
- </li>
90
-
91
- <li class="nav-item">
92
-
93
- <a class="nav-link js-scroll-trigger" href="#signup">Contact</a>
94
-
95
- </li>
96
-
97
- </ul>
98
-
99
- </div>
100
-
101
- </div>
102
-
103
- </nav>
104
-
105
- <%= yield %>
106
-
107
- <!-- Footer -->
108
-
109
- <footer class="bg-black small text-center text-white-50">
110
-
111
- <div class="container">
112
-
113
- Copyright &copy; Your Website 2019
114
-
115
- </div>
116
-
117
- </footer>
118
-
119
- </body>
120
-
121
- </html>
122
-
123
- ```
124
-
125
-
126
-
127
- app/views/startup/index.html.erb
128
-
129
-
130
-
131
- ```
132
-
133
- <!-- Header -->
134
-
135
- <header class="masthead">
136
-
137
- <div class="container d-flex h-100 align-items-center">
138
-
139
- <div class="mx-auto text-center">
140
-
141
- <h1 class="mx-auto my-0 text-uppercase">VesselTrading</h1>
142
-
143
- <h2 class="text-white-50 mx-auto mt-2 mb-5">中古船舶の売りたい・買いたいを叶えます</h2>
144
-
145
- <a href="#about" class="btn btn-primary js-scroll-trigger">船を探す</a>
146
-
147
- </div>
148
-
149
- </div>
150
-
151
- </header>
152
-
153
-
154
-
155
- <!-- About Section -->
156
-
157
- <section id="about" class="about-section text-center">
158
-
159
- <div class="container">
160
-
161
- <div class="row">
162
-
163
- <div class="col-lg-8 mx-auto">
164
-
165
- <h2 class="text-white mb-4">Built with Bootstrap 4</h2>
166
-
167
- <p class="text-white-50">Grayscale is a free Bootstrap theme created by Start Bootstrap. It can be yours right now, simply download the template on
168
-
169
- <a href="http://startbootstrap.com/template-overviews/grayscale/">the preview page</a>. The theme is open source, and you can use it for any purpose, personal or commercial.</p>
170
-
171
- </div>
172
-
173
- </div>
174
-
175
- <img src="img/ipad.png" class="img-fluid" alt="">
176
-
177
- </div>
178
-
179
- </section>
180
-
181
-
182
-
183
- <!-- Projects Section -->
184
-
185
- <section id="projects" class="projects-section bg-light">
186
-
187
- <div class="container">
188
-
189
-
190
-
191
- <!-- Featured Project Row -->
192
-
193
- <div class="row align-items-center no-gutters mb-4 mb-lg-5">
194
-
195
- <div class="col-xl-8 col-lg-7">
196
-
197
- <img class="img-fluid mb-3 mb-lg-0" src="img/bg-masthead.jpg" alt="">
198
-
199
- </div>
200
-
201
- <div class="col-xl-4 col-lg-5">
202
-
203
- <div class="featured-text text-center text-lg-left">
204
-
205
- <h4>Shoreline</h4>
206
-
207
- <p class="text-black-50 mb-0">Grayscale is open source and MIT licensed. This means you can use it for any project - even commercial projects! Download it, customize it, and publish your website!</p>
208
-
209
- </div>
210
-
211
- </div>
212
-
213
- </div>
214
-
215
-
216
-
217
- <!-- Project One Row -->
218
-
219
- <div class="row justify-content-center no-gutters mb-5 mb-lg-0">
220
-
221
- <div class="col-lg-6">
222
-
223
- <img class="img-fluid" src="img/demo-image-01.jpg" alt="">
224
-
225
- </div>
226
-
227
- <div class="col-lg-6">
228
-
229
- <div class="bg-black text-center h-100 project">
230
-
231
- <div class="d-flex h-100">
232
-
233
- <div class="project-text w-100 my-auto text-center text-lg-left">
234
-
235
- <h4 class="text-white">Misty</h4>
236
-
237
- <p class="mb-0 text-white-50">An example of where you can put an image of a project, or anything else, along with a description.</p>
238
-
239
- <hr class="d-none d-lg-block mb-0 ml-0">
240
-
241
- </div>
242
-
243
- </div>
244
-
245
- </div>
246
-
247
- </div>
248
-
249
- </div>
250
-
251
-
252
-
253
- <!-- Project Two Row -->
254
-
255
- <div class="row justify-content-center no-gutters">
256
-
257
- <div class="col-lg-6">
258
-
259
- <img class="img-fluid" src="img/demo-image-02.jpg" alt="">
260
-
261
- </div>
262
-
263
- <div class="col-lg-6 order-lg-first">
264
-
265
- <div class="bg-black text-center h-100 project">
266
-
267
- <div class="d-flex h-100">
268
-
269
- <div class="project-text w-100 my-auto text-center text-lg-right">
270
-
271
- <h4 class="text-white">Mountains</h4>
272
-
273
- <p class="mb-0 text-white-50">Another example of a project with its respective description. These sections work well responsively as well, try this theme on a small screen!</p>
274
-
275
- <hr class="d-none d-lg-block mb-0 mr-0">
276
-
277
- </div>
278
-
279
- </div>
280
-
281
- </div>
282
-
283
- </div>
284
-
285
- </div>
286
-
287
-
288
-
289
- </div>
290
-
291
- </section>
292
-
293
-
294
-
295
- <!-- Signup Section -->
296
-
297
- <section id="signup" class="signup-section">
298
-
299
- <div class="container">
300
-
301
- <div class="row">
302
-
303
- <div class="col-md-10 col-lg-8 mx-auto text-center">
304
-
305
-
306
-
307
- <i class="far fa-paper-plane fa-2x mb-2 text-white"></i>
308
-
309
- <h2 class="text-white mb-5">Subscribe to receive updates!</h2>
310
-
311
-
312
-
313
- <form class="form-inline d-flex">
314
-
315
- <input type="email" class="form-control flex-fill mr-0 mr-sm-2 mb-3 mb-sm-0" id="inputEmail" placeholder="Enter email address...">
316
-
317
- <button type="submit" class="btn btn-primary mx-auto">Subscribe</button>
318
-
319
- </form>
320
-
321
-
322
-
323
- </div>
324
-
325
- </div>
326
-
327
- </div>
328
-
329
- </section>
330
-
331
-
332
-
333
- <!-- Contact Section -->
334
-
335
- <section class="contact-section bg-black">
336
-
337
- <div class="container">
338
-
339
-
340
-
341
- <div class="row">
342
-
343
-
344
-
345
- <div class="col-md-4 mb-3 mb-md-0">
346
-
347
- <div class="card py-4 h-100">
348
-
349
- <div class="card-body text-center">
350
-
351
- <i class="fas fa-map-marked-alt text-primary mb-2"></i>
352
-
353
- <h4 class="text-uppercase m-0">Address</h4>
354
-
355
- <hr class="my-4">
356
-
357
- <div class="small text-black-50">4923 Market Street, Orlando FL</div>
358
-
359
- </div>
360
-
361
- </div>
362
-
363
- </div>
364
-
365
-
366
-
367
- <div class="col-md-4 mb-3 mb-md-0">
368
-
369
- <div class="card py-4 h-100">
370
-
371
- <div class="card-body text-center">
372
-
373
- <i class="fas fa-envelope text-primary mb-2"></i>
374
-
375
- <h4 class="text-uppercase m-0">Email</h4>
376
-
377
- <hr class="my-4">
378
-
379
- <div class="small text-black-50">
380
-
381
- <a href="#">hello@yourdomain.com</a>
382
-
383
- </div>
384
-
385
- </div>
386
-
387
- </div>
388
-
389
- </div>
390
-
391
-
392
-
393
- <div class="col-md-4 mb-3 mb-md-0">
394
-
395
- <div class="card py-4 h-100">
396
-
397
- <div class="card-body text-center">
398
-
399
- <i class="fas fa-mobile-alt text-primary mb-2"></i>
400
-
401
- <h4 class="text-uppercase m-0">Phone</h4>
402
-
403
- <hr class="my-4">
404
-
405
- <div class="small text-black-50">+1 (555) 902-8832</div>
406
-
407
- </div>
408
-
409
- </div>
410
-
411
- </div>
412
-
413
- </div>
414
-
415
-
416
-
417
- <div class="social d-flex justify-content-center">
418
-
419
- <a href="#" class="mx-2">
420
-
421
- <i class="fab fa-twitter"></i>
422
-
423
- </a>
424
-
425
- <a href="#" class="mx-2">
426
-
427
- <i class="fab fa-facebook-f"></i>
428
-
429
- </a>
430
-
431
- <a href="#" class="mx-2">
432
-
433
- <i class="fab fa-github"></i>
434
-
435
- </a>
436
-
437
- </div>
438
-
439
-
440
-
441
- </div>
442
-
443
- ```
444
-
445
-
446
-
447
23
  app/assets/stylesheets/application.scss
448
24
 
449
25
  ```
@@ -529,3 +105,143 @@
529
105
  //= require_tree .
530
106
 
531
107
  ```
108
+
109
+
110
+
111
+ Gemfile
112
+
113
+
114
+
115
+ ```
116
+
117
+ source 'https://rubygems.org'
118
+
119
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
120
+
121
+
122
+
123
+ ruby '2.6.3'
124
+
125
+
126
+
127
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
128
+
129
+ gem 'rails', '~> 5.2.3'
130
+
131
+ # Use sqlite3 as the database for Active Record
132
+
133
+ gem 'sqlite3'
134
+
135
+ # Use Puma as the app server
136
+
137
+ gem 'puma', '~> 3.11'
138
+
139
+ # Use SCSS for stylesheets
140
+
141
+ gem 'sass-rails', '~> 5.0'
142
+
143
+ # Use Uglifier as compressor for JavaScript assets
144
+
145
+ gem 'uglifier', '>= 1.3.0'
146
+
147
+ # See https://github.com/rails/execjs#readme for more supported runtimes
148
+
149
+ # gem 'mini_racer', platforms: :ruby
150
+
151
+
152
+
153
+ # Use CoffeeScript for .coffee assets and views
154
+
155
+ gem 'coffee-rails', '~> 4.2'
156
+
157
+ # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
158
+
159
+ gem 'turbolinks', '~> 5'
160
+
161
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
162
+
163
+ gem 'jbuilder', '~> 2.5'
164
+
165
+ # Use Redis adapter to run Action Cable in production
166
+
167
+ # gem 'redis', '~> 4.0'
168
+
169
+ # Use ActiveModel has_secure_password
170
+
171
+ # gem 'bcrypt', '~> 3.1.7'
172
+
173
+
174
+
175
+ # Use ActiveStorage variant
176
+
177
+ # gem 'mini_magick', '~> 4.8'
178
+
179
+
180
+
181
+ # Use Capistrano for deployment
182
+
183
+ # gem 'capistrano-rails', group: :development
184
+
185
+
186
+
187
+ # Reduces boot times through caching; required in config/boot.rb
188
+
189
+ gem 'bootsnap', '>= 1.1.0', require: false
190
+
191
+
192
+
193
+ group :development, :test do
194
+
195
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
196
+
197
+ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
198
+
199
+ end
200
+
201
+
202
+
203
+ group :development do
204
+
205
+ # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
206
+
207
+ gem 'web-console', '>= 3.3.0'
208
+
209
+ gem 'listen', '>= 3.0.5', '< 3.2'
210
+
211
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
212
+
213
+ gem 'spring'
214
+
215
+ gem 'spring-watcher-listen', '~> 2.0.0'
216
+
217
+ end
218
+
219
+
220
+
221
+ group :test do
222
+
223
+ # Adds support for Capybara system testing and selenium driver
224
+
225
+ gem 'capybara', '>= 2.15'
226
+
227
+ gem 'selenium-webdriver'
228
+
229
+ # Easy installation and use of chromedriver to run system tests with Chrome
230
+
231
+ gem 'chromedriver-helper'
232
+
233
+ end
234
+
235
+
236
+
237
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
238
+
239
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
240
+
241
+
242
+
243
+ gem 'bootstrap', '~> 4.3.1'
244
+
245
+ gem 'jquery-rails'
246
+
247
+ ```