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.
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.” [more inside]
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. [more inside]
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. [more inside]
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. [more inside]
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 [more inside]
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: https://www.rubberduckdevshow.com/episodes/105-the-burnout-show-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. [more inside]
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. https://andymaleh.blogspot.com/2023/10/glimmer-dsl-for-libui-scaffolding-snake.html
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. [more inside]
Better Know A Ruby Thing: Method Missing
The first in a series of articles about Ruby features, this one covers method_missing – what it does, how to use it well, and how to use it badly…
Glimmer Wordle 1.1.5 Released
Glimmer Wordle 1.1.5 has just been released with official support for Windows. Although the game worked on Windows before, thanks to the platform-independent Glimmer DSL for SWT GUI library it was built with, styling was not tweaked for Windows till now in version 1.1.5. [more inside]
Advanced Usages of Action Policy for Ruby on Rails
Let’s explore some advanced usages of Action Policy, including pre-checks, scopes, caching, and aliases: https://blog.appsignal.com/2023/10/18/advanced-usages-of-action-policy-for-ruby-on-rails.html
About Ruby: A tale of searching for the main
I tried in this article About Ruby: A tale of searching for the main to provide a different flow of answering questions about Ruby than pointing to documentation. [more inside]
Better Rails Forms with Superform
I wrote about a complete clean-sheet rewrite I did of Rails form helpers at https://fly.io/ruby-dispatch/better-rails-forms-with-superform/. The forms can permit their own parameters, so no strong parameters are needed. They’re also highly composable because they’re implemented using 100% Plain ‘ol Ruby Objects.