質問編集履歴
1
Gemfileの追加とリンクの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,8 +1,12 @@
|
|
1
|
+
udemyのこちら
|
2
|
+
|
1
|
-
udemy
|
3
|
+
[udemy](https://www.udemy.com/course/rails-kj/)
|
4
|
+
|
2
|
-
|
5
|
+
を学習中で、
|
3
|
-
|
4
|
-
|
6
|
+
|
7
|
+
|
8
|
+
|
5
|
-
https://github.com/kkoji/rails-lecture/tree/current_user_method
|
9
|
+
[gihub](https://github.com/kkoji/rails-lecture/tree/current_user_method)
|
6
10
|
|
7
11
|
上記アプリを作っています。
|
8
12
|
|
@@ -207,3 +211,127 @@
|
|
207
211
|
|
208
212
|
|
209
213
|
```
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
追記
|
220
|
+
|
221
|
+
```Gemfile
|
222
|
+
|
223
|
+
source 'https://rubygems.org'
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
230
|
+
|
231
|
+
gem 'rails', '~> 5.0.0', '>= 5.0.0.1'
|
232
|
+
|
233
|
+
# Use mysql as the database for Active Record
|
234
|
+
|
235
|
+
gem 'mysql2', '>= 0.3.18', '< 0.5'
|
236
|
+
|
237
|
+
# Use Puma as the app server
|
238
|
+
|
239
|
+
gem 'puma', '~> 3.0'
|
240
|
+
|
241
|
+
# Use SCSS for stylesheets
|
242
|
+
|
243
|
+
gem 'sass-rails', '~> 5.0'
|
244
|
+
|
245
|
+
# Use Uglifier as compressor for JavaScript assets
|
246
|
+
|
247
|
+
gem 'uglifier', '>= 1.3.0'
|
248
|
+
|
249
|
+
# Use CoffeeScript for .coffee assets and views
|
250
|
+
|
251
|
+
gem 'coffee-rails', '~> 4.2'
|
252
|
+
|
253
|
+
# See https://github.com/rails/execjs#readme for more supported runtimes
|
254
|
+
|
255
|
+
# gem 'therubyracer', platforms: :ruby
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
# Use jquery as the JavaScript library
|
260
|
+
|
261
|
+
gem 'jquery-rails'
|
262
|
+
|
263
|
+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
264
|
+
|
265
|
+
gem 'turbolinks', '~> 5'
|
266
|
+
|
267
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
268
|
+
|
269
|
+
gem 'jbuilder', '~> 2.5'
|
270
|
+
|
271
|
+
# Use Redis adapter to run Action Cable in production
|
272
|
+
|
273
|
+
# gem 'redis', '~> 3.0'
|
274
|
+
|
275
|
+
# Use ActiveModel has_secure_password
|
276
|
+
|
277
|
+
gem 'bcrypt', '~> 3.1.7'
|
278
|
+
|
279
|
+
gem 'bootstrap', '~> 4.0.0'
|
280
|
+
|
281
|
+
gem 'mini_racer'
|
282
|
+
|
283
|
+
gem 'kaminari'
|
284
|
+
|
285
|
+
gem 'rails-i18n'
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
# Use Capistrano for deployment
|
290
|
+
|
291
|
+
# gem 'capistrano-rails', group: :development
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
group :development, :test do
|
296
|
+
|
297
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
298
|
+
|
299
|
+
gem 'byebug', platform: :mri
|
300
|
+
|
301
|
+
gem 'rails-flog', require: 'flog'
|
302
|
+
|
303
|
+
end
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
group :development do
|
308
|
+
|
309
|
+
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
|
310
|
+
|
311
|
+
gem 'web-console'
|
312
|
+
|
313
|
+
gem 'listen', '~> 3.0.5'
|
314
|
+
|
315
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
316
|
+
|
317
|
+
gem 'spring'
|
318
|
+
|
319
|
+
gem 'spring-watcher-listen', '~> 2.0.0'
|
320
|
+
|
321
|
+
gem 'pry-byebug'
|
322
|
+
|
323
|
+
gem 'annotate'
|
324
|
+
|
325
|
+
end
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
330
|
+
|
331
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
コード
|
336
|
+
|
337
|
+
```
|