-
Scout Monitoring
Rennaisance engineers rejoice! 1 gem 5 min to app monitoring. 5-minute onboarding. No sales team. Devs in the support channels. No DevOps team required. Get the free app insights every engineer deserves with Scout Monitoring.
-
jquery.pageless
Discontinued A jQuery plugin. As you scroll down you see more results coming back at you automatically.
Add paginate for images using will_paginate gem. Add this to the Gemfile.
Create jquery.pageless.js in app/javascript/packs with this code
If you want to check the code. You could do it here: Github Repository
require "net/http" url = "https://picsum.photos/v2/list?page=2&limit=100" resp = Net::HTTP.get_response(URI.parse(url)) data = JSON.parse(resp.body) data.each do |d| url = "https://picsum.photos/200/#{300+(rand(1..5)*20)}" #This will use random heights for the image p Image.where(author: d['author'], url: url).first_or_create end