The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Generate Screenshot with Ruby
I wrote a blog post on different ways to generate screenshot with Ruby [more inside]
[Screencast] Multifactor Authentication via Recovery Codes with Rodauth
Learn how to add recovery codes as a backup multifactor authentication method to your Rails app, and how you can modify what Rodauth provides out-of-the-box. https://youtu.be/lkFCcE1Q5-w
Ruby on Rails Time Without Time Zone
In Ruby and Rails, there is no class dedicated to time-of-day, so 2000–01–01 is used for the time. ActiveModel implements a Time class to reflect the database type of time https://nauman.medium.com/rails-time-without-time-zone-50d690d45f82
Glimmer DSL for SWT Video Tutorial 25 - Hello, Canvas Path!
Desktop development is about 10 times simpler than web development. Learn it and you will become a better web developer as you transfer the simplicity of desktop development to the web! [more inside]
Rubber Duck Dev Show Episode 51 | Andrew Mason & Collin Jilbert of Ruby Radar
Hear four rubyists discuss various aspects of programming as the Rubber Duck Devs host Andrew Mason & Collin Jilbert from the Ruby Radar Newsletter: https://www.rubberduckdevshow.com/episodes/51-andrew-mason-collin-jilbert-ruby-radar/
Turbo Frames vs. Turbo Streams
This video goes over the differences between Turbo Frames and Turbo Streams. https://youtu.be/vnDWsGtzOCc
Testing microservices
Microservices need a different approach when it comes to testing. The microservices test pyramid is more complex. Here’s how to use it: https://semaphoreci.com/blog/test-microservices
Hanami v2.0.0.beta1
Hanami 2 first beta: app-centric revolution & CLI. What to expect in 2.0 and 2.1. app/ directory is now the primary home for your code. https://hanamirb.org/blog/2022/07/20/announcing-hanami-200beta1/
MongoDB adapter for Ruby Object Mapper
Another version of mongodb rom adapter: https://github.com/bestwebua/rom-mongo
[AnyCasts RailsConf special] Turbo Streams vs. consistency
In this AnyCasts episode, I’m exploring the (in-)consistency of Turbo Streams and how to reach better delivery guarantees (with and without AnyCable superpowers).
Gosu Game Jam Theme Voting Begins
The gosu game library is having it’s third jam starting August 14th. Theme voting has started, join the jam at https://itch.io/jam/gosu-game-jam-3 and vote on some themes.
7 levels of test coverage
An opinionated approach to different levels of test coverage in Ruby applications! [more inside]
Bridgetown 1.1 “Belmont” Has Landed
New features include i18n support for multilingual websites, integration with Shoelace & Lit components, HTML & XML Inspectors, Sass support with esbuild, and Markdown enhancements. And just published: a website migration guide from Jekyll. Check out the full announcement here.
Down the caching‑hole: adventures in ‘HTTP caching and Faraday’ land
I added an automated caching mechanism to Octokit …and everything went wrong! But thanks to my fantastic misadventures, you’ll learn about HTTP caches, how Faraday middleware work, and how to use them to automagically start caching API calls.
gem-compare goes 1.2.0
Read about new contributions and contributors to gem-compare 1.1. and 1.2.
Request Spec Realistic Error Response
RSpec request specs can test endpoints that raise exceptions handled by Rails to return 4xx or 5xx responses. To test the returned response code, rather than the exception, you need extra setup. Read more.
Glimmer DSL for SWT v4.24.0.2
Glimmer DSL for SWT v4.24.0.2 has been released with the following changes: [more inside]
Glimmer DSL for SWT Video Tutorial 24 - Hello, Canvas Data-Binding!
Desktop development is about 10 times simpler than web development. Learn it and you will become a better web developer as you transfer the simplicity of desktop development to the web! [more inside]
Rubber Duck Dev Show Episode 50 | Brittany Martin From The Ruby On Rails Podcast
Hear three rubyists talk about podcasting, project management and more as the Rubber Duck Devs host our special guest Brittany Martin from the Ruby On Rails Podcast: https://www.rubberduckdevshow.com/episodes/50-brittany-martin-ruby-on-rails-podcast/
Intro To Rspec Mocks
RSpec provides tools that help you test the behavior of your Ruby objects. Join Abiodun Olowode for a tour of mocks, stubs, and spies—and learn how to use them in your Ruby projects! https://www.honeybadger.io/blog/rspec-mocks/
https://semaphoreci.com/blog/deploy-microservices?
The perfect place to host a microservice application is largely determined by its size and scaling requirements. So, let’s go over the 5 main ways we can deploy microservices. [more inside]
Holly Cummins on Getting Into and Testing Microservices
An insightful interview about the challenges #microservices come with and the right way to test them. [more inside]
Deploy Your Ruby on Rails App Using Capistrano
In this article, we will configure Capistrano in a Ruby on Rails application. We will then deploy the app to a cloud instance that runs Ubuntu as an operating system, independent of your hosting provider. [more inside]
7 ways to improve your next support rotation with event storage
Broad overview of how having event storage (like Rails Event Store or Active Event Store) helps when working on support tasks. [more inside]