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.
ViewComponent vs Phlex vs Partials
I have been using Partials since I started programming in Rails in 2005. ViewComponent and Phlex remind me of React Components making an HTML chunk re-usable. Well, partials do the same. Read the full article here - ViewComponent vs Phlex vs Partials: A Comprehensive Comparison in Ruby on Rails.
HexaPDF 1.0.0 released
After 10 years of working on HexaPDF, I released version 1.0.0. The news entry contains the short list of changes and what’s next.
The Unicode::Emoji::REGEX now supports unqualified Emoji sequences
Unqualified refers to recommended Emoji sequences that miss the special codepoint U+FE0F (Variation Selector 16) . For example, the Emoji “man golfing” can appear in all three forms: [more inside]
Russian Doll Caching in Rails: A Complete Guide to Fragment Caching Optimization
Using caching on modern web apps is very important. And, when you have nested records then fragment cache is the saviour. Read Russian Doll Caching in Rails: A Complete Guide to Fragment Caching Optimization.
rubocop-obsession: A RuboCop extension focused on higher-level code concepts
rubocop-obsession is a collection of RuboCop cops that focus on higher-level concepts, like checking that code reads from top to bottom, or only unit testing public methods. Reading through their implementation can give you inspiration to build your own custom cops aligned with your project’s best practices.
Why is your Rails app boot slow?
Even asked your self why is your Rails app boot slow?
Creating web app monoliths that boot instantly with Ruby
This article explores how we can create web apps that boot in under a second with Ruby.
How to Use Mixins in Your Ruby on Rails Application
How to Use Mixins in Your Ruby on Rails Application
Sending Web Push Notifications from Rails
In advance of the proposed new push notification framework for Rails 8, Action Notifier, it may be helpful to know how Web Push works under the hood. This article provides a recipe for implementing Web Push on Rails and has something you won’t find in most posts about Web Push: a working demo! (in supporting browsers and devices) 😅 [more inside]
Mastering Ruby String Interpolation
Mastering Ruby String Interpolation
Rails 8 authentication generator
Rails 8 has introduced a generator for adding basic authentication code to Rails apps. I took it for a spin and found out it doesn’t generate a registration page! Read more about my impressions of the Rails authentication generator and notes on adding a registrations endpoint.
Kamal Handbook, 2nd edition for Kamal 2 is out
I just released the second edition for Kamal Handbook. Kamal is the new deploy tool by DHH and team at 37signals and a new Rails 8 default gem.
The ultimate guide to Sidekiq scheduled jobs
Sidekiq remains the fastest and most robust job processing system for Ruby on Rails and ActiveJob. Our latest article explores how to work with scheduled jobs in Sidekiq. Give it a read!
Migrating an 8-yr-old Rails app from Heroku to Render
What’s it like to migrate a mature SaaS app with real traffic from Heroku to Render? I’ll walk you through it in this 30-minute video.
A closer look at Rails force_ssl and assume_ssl
Understand more about force_ssl in Rails.
How to continue to use Rails.application.secrets in Rails >= 7.2
A tiny post describes, how leave use config/secrets.yml file in Ruby in Rails >= 7.2
Glimmer DSL for Web Component Custom Event Listeners / Component Slots / Default Slot
Glimmer DSL for Web (Ruby-in-the-Browser Web Frontend Framework) recently added support for Component Custom Event Listeners, Component Slots, and Default Slot in the 0.5.x & 0.6.x version releases. The new samples Hello, Component Slots!, Hello, Component Listeners!, and Hello, Component Listeners (Default Slot)! have been added as well and can be played around with in an online hosted Rails Sample Selector web app. [more inside]
What is Rack
This blog post explains what are Rack servers, Rack applications and Rack middleware by building one of each from scratch. [more inside]
How to Create Dynamic Form Fields in Rails with Auto-Updates with Hotwire, StimulusJS
Have you ever needed to create dependent fields in a form? Selecting a Country, updates the States select. Or if you select a role (standard/manager/admin) it loads specific fields for the role. [more inside]
10 Best AI Tools for Ruby on Rails 8 Development in 2024
I recently started using Codeium to get suggestions while coding. However, I want more AI power thus I compiled a list of tools. My Latest Blog Post on 10 Best AI Tools for Ruby on Rails 8 Development in 2024. Hopefully, It helps you too.