質問編集履歴
1
環境の説明として、gemfileを追加しました。
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Javascriptが読み込まれない
|
1
|
+
Ruby on Rails で Javascriptが読み込まれない
|
test
CHANGED
@@ -228,4 +228,158 @@
|
|
228
228
|
|
229
229
|
= f.submit "Submit", class: "form__submit"
|
230
230
|
|
231
|
+
|
232
|
+
|
231
|
-
```
|
233
|
+
```
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
## gemfile
|
238
|
+
|
239
|
+
```
|
240
|
+
|
241
|
+
source 'https://rubygems.org'
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
git_source(:github) do |repo_name|
|
246
|
+
|
247
|
+
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
|
248
|
+
|
249
|
+
"https://github.com/#{repo_name}.git"
|
250
|
+
|
251
|
+
end
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
258
|
+
|
259
|
+
gem 'rails', '~> 5.0.0', '>= 5.0.0.1'
|
260
|
+
|
261
|
+
# Use mysql as the database for Active Record
|
262
|
+
|
263
|
+
gem 'mysql2', '>= 0.3.18', '< 0.5'
|
264
|
+
|
265
|
+
# Use Puma as the app server
|
266
|
+
|
267
|
+
gem 'puma', '~> 3.0'
|
268
|
+
|
269
|
+
# Use SCSS for stylesheets
|
270
|
+
|
271
|
+
gem 'sass-rails', '~> 5.0'
|
272
|
+
|
273
|
+
# Use Uglifier as compressor for JavaScript assets
|
274
|
+
|
275
|
+
gem 'uglifier', '>= 1.3.0'
|
276
|
+
|
277
|
+
# Use CoffeeScript for .coffee assets and views
|
278
|
+
|
279
|
+
gem 'coffee-rails', '~> 4.2'
|
280
|
+
|
281
|
+
# See https://github.com/rails/execjs#readme for more supported runtimes
|
282
|
+
|
283
|
+
# gem 'therubyracer', platforms: :ruby
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
# Use jquery as the JavaScript library
|
288
|
+
|
289
|
+
gem 'jquery-rails'
|
290
|
+
|
291
|
+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
292
|
+
|
293
|
+
gem 'turbolinks', '~> 5'
|
294
|
+
|
295
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
296
|
+
|
297
|
+
gem 'jbuilder', '~> 2.5'
|
298
|
+
|
299
|
+
# Use Redis adapter to run Action Cable in production
|
300
|
+
|
301
|
+
# gem 'redis', '~> 3.0'
|
302
|
+
|
303
|
+
# Use ActiveModel has_secure_password
|
304
|
+
|
305
|
+
# gem 'bcrypt', '~> 3.1.7'
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
# Use Capistrano for deployment
|
310
|
+
|
311
|
+
# gem 'capistrano-rails', group: :development
|
312
|
+
|
313
|
+
gem "haml-rails", "~> 0.9"
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
gem 'font-awesome-sass', '~> 4.7.0'
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
gem 'devise'
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
group :development, :test do
|
326
|
+
|
327
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
328
|
+
|
329
|
+
gem 'byebug', platform: :mri
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
end
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
group :development do
|
338
|
+
|
339
|
+
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
|
340
|
+
|
341
|
+
gem 'web-console', '>= 3.3.0'
|
342
|
+
|
343
|
+
gem 'listen', '~> 3.0.5'
|
344
|
+
|
345
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
346
|
+
|
347
|
+
gem 'spring'
|
348
|
+
|
349
|
+
gem 'spring-watcher-listen', '~> 2.0.0'
|
350
|
+
|
351
|
+
gem 'erb2haml'
|
352
|
+
|
353
|
+
gem 'pry'
|
354
|
+
|
355
|
+
gem 'better_errors'
|
356
|
+
|
357
|
+
gem 'binding_of_caller'
|
358
|
+
|
359
|
+
end
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
group :test do
|
364
|
+
|
365
|
+
gem 'rspec-rails'
|
366
|
+
|
367
|
+
gem 'factory_girl_rails', "~> 4.4.1"
|
368
|
+
|
369
|
+
gem 'faker'
|
370
|
+
|
371
|
+
# Use assert_template.
|
372
|
+
|
373
|
+
gem 'rails-controller-testing'
|
374
|
+
|
375
|
+
end
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
380
|
+
|
381
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
```
|