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.
FactoryBot for Rails testing
Dive into FactoryBot to ensure your testing data is reliable and consistent.
Limiting Maximum Index Name Length in Ruby on Rails 7.1
Read more about limiting Maximum Index Name Length in Ruby on Rails 7.1 Read more
Rails Authentication compliance requirements
“Suppose you are working on a Rails application that needs to meet specific security compliance requirements like PCI, ISO 2007, or SOC2. In that case, one of the objectives is to have proper authentication and access control.” Read more
How to skip all callbacks for all models in Rails
I explored a couple of solutions about how to skip all callbacks on ActiveRecord models. It goes from using conditional callbacks to Patching ApplicationRecord and using the Suppresor from Rails.
Pessimistic Locking in Rails
This is the second part of a series about Advisory Locks that I dig in after I had the opportunity to interview @bensheldon, the creator and maintainer of GoodJob. This is about pessimistic locking in Rails. Read more
The future of full-stack Rails II: Turbo View Transitions
In the last part of this series, we show how to breathe new life into our apps, adding slick page transition animations (without the hassle) via Turbo and the View Transitions API. Read more
Mastering Rails Web Navigation with link_to and button_to Helpers - Part 2
Having laid the groundwork in Part 1, we’re now poised to dive into the heart of web navigation in Rails. In this part, we’ll focus on the magic of the link_to and button_to helpers, starting with the ever-versatile link_to. These helpers are the unsung heroes that power the seamless navigation experience we often take for granted. Read more
Mastering Rails Web Navigation with link_to and button_to Helpers - Part 1
We explore the Rails web navigation system, understand how Rails handles requests, and delve deep into the world of middleware. Part 1 Read more
The Burnout Show With Kota Weaver | Rubber Duck Dev Show 105
In this episode, we discuss dealing with burnout (mostly in software development) with Kota Weaver:
Better Know A Ruby Thing: Constants
Constants aren’t constant, how Ruby finds and uses constants, and, of course, what metaprogramming you can do when constants are missing. Read more
Glimmer DSL for LibUI Scaffolding + Snake Game
Glimmer DSL for LibUI 0.9.x versions include support for a new Glimmer Command, Application Scaffolding, Custom Component Scaffolding, Custom Component Gem Scaffolding, and more. These features greatly improve Software Engineering Productivity when building desktop applications with Glimmer DSL for LibUI. Glimmer Scaffolding could be thought of as the “Desktop Application” equivalent of Rails Scaffolding and Generators. In fact, I ate my own dog food and used the new Application Scaffolding feature to effortlessly scaffold a Glimmer Snake game.
Adding ActiveRecord slugs by creating a general Sluggable concern
Here’s how to add slugs to models in Rails including a restricted path validator and some tests :)
rouge-gtk_theme_loader v0.3.2
rouge-gtk_theme_loader loads GtkSourceView themes into the Rouge syntax highlighter, so you can get access to a wide variety of themes. It has been updated to support mapping more attributes. Read more