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.
Today
The Seventh Gosu Game Jam starts this Weekend!
The Gosu game library’s community is hosting the seventh Gosu Game Jam, on Itch.io, starting this weekend and running through Oct. 27th.
Simplify and Speed Up Development of Rails Controllers
Handling filter parameters for index endpoints in Rails controllers can often be a repetitive and error-prone task. Check out this overview of the Filterameter gem to find out how to write cleaner and more maintainable code by declaring filters.
We have open sourced our Job Board app built on Rails 6
Clone or Fork Open source Job Board MVP built on Rails 6. Soon to be upgraded to Rails 8.
Montreal.rb October 2024 - Tame Complex Queries with Database Views
PostgreSQL views are a useful tool to make query logic reusable and maintainable. This talk will cover their pros and cons, a couple of real-world use cases, and how to use them in Rails apps using the Scenic gem: https://www.youtube.com/watch?v=gdrscLBNvDo&list=PLRAf4zt5oEjc2mqmEN9m_O0JovQCXxvxt&index=14 [more inside]
Mastering custom configuration in Rails
In this latest Joy of Rails article, I describe how to add your own configuration options to a Rails app including a deep dive into ActiveSupport::OrderedOptions and the built-in X-factor: “config x”. [more inside]
Interfacing with external APIs: the facade pattern in Ruby
Interacting with third-party APIs is common practice in applications. But do you prevent sprinkling calls across your codebase, duplicating logic and reinventing the wheel? This is where the structural design pattern called facade comes into play.
This example app configures ActionText with ActiveAdmin v4
https://github.com/multigoodsoftware0/activeadminv4-examples/tree/main/faqstiger. ActiveAdmin4 uses Tailwind and Flowbite by default and would be the best fit for building super admin for your Rails 8 apps.
InvoicePrinter 2.4.0 is out
I released a new version of InvoicePrinter, the super simple invoicing library for Ruby.
Oktest 1.5.0 Released
Oktest 1.5.0 Released. Oktest is a new style testing library. It has several useful features such as fixture injection, JSON matcher, or partial regexp. [more inside]
JavaScript is a disease! Ruby is the cure!
In a recent Ruby meetup, I called JavaScript a disease! It is true! Especially, when comparing JavaScript code to much better, more elegant, and more readable Ruby code! JavaScript looks like ugly smelly mold by comparison. Once you see it, you can never unsee it! Yahuda Katz mentioned in his keynote speech at RailsConf 2014 that by continuously building more floors for the lower levels of a building in the form of a framework and a community of open-source projects, we enable developers to start development at higher and higher levels than they would have been able to otherwise, thus helping them leapfrog earlier ways of development in ever increasing productivity! In 2024, Frontend Ruby is the next floor level that enables Ruby Software Engineers to start at a higher level of development with much higher productivity and maintainability. [more inside]
Build Magic link authentication for Devise natively in Rails 7.1 thanks to generates_
Rails 7.1 introduced several new features, but the one we’re focusing on here is the generates_token_for method. This feature is particularly useful because it lets us create signed tokens with expiration dates, all without needing to modify the database. [more inside]
CLIApp 0.2.0 Released
I released CLIApp 0.2.0. CLIApp is a small framework to create CLI applications that take actions (=subcommands) such as Git, Docker, RubyGem, etc. In this release, help messages are printed in color.
Understanding the 3 Solids in Rails 8: SolidQueue, SolidCache, and SolidCable
Read this blog post to understand the 3 solids in Rails8 .. Understanding the 3 Solids in Rails 8: SolidQueue, SolidCache, and SolidCable
How CDNs Work (Propshaft / Static Assets Pt. 2)
Welcome back for part two of assets, static files, browser delivery, and Propshaft! In part one we… https://judoscale.com/blog/propshaft-part-2-cdns
Hello-Ruby-Boilerpl8 0.3.0 Released
hello-ruby-boilerpl8 0.3.0 released. This repository (not gem package) provides Ruby project boilerplate (or template) for simple command line script. See README for details and changes.
Mastering Thruster for Ruby on Rails: A Deep Dive for Beginners
Read this blog post to learn more about Thruster and how it replaces Nginx in Rails8 applications. Kamal2 Proxy is the best feature. [more inside]
rails-new
rails-new allows you to generate a new Rails application without having to install Ruby and the rest of the dependencies of a typical Rails app on your machine. All you need is to have Docker installed on your machine. [more inside]
Upgrading to Kamal 2
Kamal 2 was released recently with a lot of substantial changes and I wrote a little post to show the upgrade process: https://greg.molnar.io/blog/upgrading-to-kamal-2/
How Solid Queue works under the hood
Picture this: you’re six months into a fresh Rails app that processes business-critical jobs with Solid Queue—and you deployed a bug that is wreaking havoc in thousands of jobs. How do you find them? You’ll wish you’d read our latest article from Jeffery Morhous! Learn how Solid Queue works
A Deep Dive into Propshaft and Importmaps in Ruby on Rails 8
Read this blog post explaining the difference between 2 main features of Rails 8 to manage your assets (images, stylesheets, and javascripts) [more inside]