質問編集履歴
3
一部文言の修正を行いました
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
現状以下のように、リロード時に一番上に戻る
|
19
|
+
現状以下のように、リロード時に一番上に戻るjavascriptを実装している状態です。
|
20
20
|
|
21
21
|
|
22
22
|
|
2
ページ更新後の動きの情報を修正しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
例えば下にスクロールしていき、50件を表示している状態で、ブラウザの更新ボタンを押すと、
|
15
|
+
例えば下にスクロールしていき、50件を表示している状態で、ブラウザの更新ボタンを押すと、一瞬一番上へ移動するのですが、その後すぐ更新前の位置に戻ってしまうのですが、これを初期の10件分表示に戻したいと考えています(これもtwitterのようなイメージです)。
|
16
16
|
|
17
17
|
|
18
18
|
|
1
Gemfileの内容を追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -163,3 +163,187 @@
|
|
163
163
|
});
|
164
164
|
|
165
165
|
```
|
166
|
+
|
167
|
+
```ruby
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
# Gemfile
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
source 'https://rubygems.org'
|
176
|
+
|
177
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
ruby '2.6.1'
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
186
|
+
|
187
|
+
gem 'rails', '~> 5.2.4', '>= 5.2.4.1'
|
188
|
+
|
189
|
+
# Use mysql as the database for Active Record
|
190
|
+
|
191
|
+
gem 'mysql2', '>= 0.4.4', '< 0.6.0'
|
192
|
+
|
193
|
+
# Use Puma as the app server
|
194
|
+
|
195
|
+
gem 'puma', '~> 3.11'
|
196
|
+
|
197
|
+
# Use SCSS for stylesheets
|
198
|
+
|
199
|
+
gem 'sass-rails', '~> 5.0'
|
200
|
+
|
201
|
+
# Use Uglifier as compressor for JavaScript assets
|
202
|
+
|
203
|
+
gem 'uglifier', '>= 1.3.0'
|
204
|
+
|
205
|
+
# See https://github.com/rails/execjs#readme for more supported runtimes
|
206
|
+
|
207
|
+
# gem 'mini_racer', platforms: :ruby
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
# Use CoffeeScript for .coffee assets and views
|
212
|
+
|
213
|
+
gem 'coffee-rails', '~> 4.2'
|
214
|
+
|
215
|
+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
216
|
+
|
217
|
+
#gem 'turbolinks', '~> 5'
|
218
|
+
|
219
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
220
|
+
|
221
|
+
gem 'jbuilder', '~> 2.5'
|
222
|
+
|
223
|
+
# Use Redis adapter to run Action Cable in production
|
224
|
+
|
225
|
+
# gem 'redis', '~> 4.0'
|
226
|
+
|
227
|
+
# Use ActiveModel has_secure_password
|
228
|
+
|
229
|
+
gem 'bcrypt', '~> 3.1.7'
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
# ページング用Gem
|
234
|
+
|
235
|
+
gem 'kaminari', '~> 0.17.0'
|
236
|
+
|
237
|
+
# jquery用
|
238
|
+
|
239
|
+
gem "jquery-rails"
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
gem 'pry-rails'
|
244
|
+
|
245
|
+
gem 'pry-doc'
|
246
|
+
|
247
|
+
gem 'pry-byebug'
|
248
|
+
|
249
|
+
gem 'pry-stack_explorer'
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
# OGP対応
|
254
|
+
|
255
|
+
gem "opengraph_parser"
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
# S3対応
|
260
|
+
|
261
|
+
gem 'aws-sdk-s3'
|
262
|
+
|
263
|
+
gem 'aws-ses', '~> 0.6'
|
264
|
+
|
265
|
+
gem 'carrierwave'
|
266
|
+
|
267
|
+
gem 'fog-aws'
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
# minimagic
|
272
|
+
|
273
|
+
gem 'mini_magick'
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
# 通知
|
278
|
+
|
279
|
+
gem 'snackbarjs-rails'
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
# cron
|
284
|
+
|
285
|
+
gem 'whenever'
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
# Reduces boot times through caching; required in config/boot.rb
|
294
|
+
|
295
|
+
gem 'bootsnap', '>= 1.1.0', require: false
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
group :development, :test do
|
300
|
+
|
301
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
302
|
+
|
303
|
+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
304
|
+
|
305
|
+
end
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
group :development do
|
310
|
+
|
311
|
+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
|
312
|
+
|
313
|
+
gem 'web-console', '>= 3.3.0'
|
314
|
+
|
315
|
+
gem 'listen', '>= 3.0.5', '< 3.2'
|
316
|
+
|
317
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
318
|
+
|
319
|
+
gem 'spring'
|
320
|
+
|
321
|
+
gem 'spring-watcher-listen', '~> 2.0.0'
|
322
|
+
|
323
|
+
end
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
group :test do
|
328
|
+
|
329
|
+
# Adds support for Capybara system testing and selenium driver
|
330
|
+
|
331
|
+
gem 'capybara', '>= 2.15'
|
332
|
+
|
333
|
+
gem 'selenium-webdriver'
|
334
|
+
|
335
|
+
# Easy installation and use of chromedriver to run system tests with Chrome
|
336
|
+
|
337
|
+
gem 'chromedriver-helper'
|
338
|
+
|
339
|
+
end
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
344
|
+
|
345
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
```
|