Ruby on Rails | rubyclub
1.53K subscribers
214 photos
1 video
264 links
Software Writer @yegorckv
Download Telegram
HotwireCombobox: A Turbo + Stimulus Autocompleting Combobox β€” Simple, sweet, and well explained on the homepage, complete with live demo. Designed for modern Rails 7 apps. GitHub demo.
πŸ’» Retry known idempotent SELECT queries, New Active Record configuration option, and more.

Two new guides are now open for community review. If you are well versed in Action View, partials, and helpers, please review and submit your feedback here:

Action View Overview PR
Action View Helpers PR

Add config.active_record.permanent_connection_checkout setting This setting determines the action taken when ActiveRecord::Base.connection is accessed: whether it raises an error, emits a deprecation warning, or does nothing.
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’» Seven deadly Rails anti-patterns

Developing web applications with Ruby on Rails is known to be hellishly productive. What’s the price of this deal? Let’s talk about design patterns leveraged by the framework responsible for increased productivity and at the same time often acclaimed for being anti-patterns.
Please open Telegram to view this post
VIEW IN TELEGRAM
RAILS PRO TIPS

Did you know Rails provides the --unused option to print unused routes?
πŸ’» Micro benchmarking value objects in Ruby: Data.define vs Struct vs OpenStruct

A comparison of Data.define, Struct, OpenStruct – all ways to conveniently define data objects.
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”Œ AnyCable v1.5: signed streams, whispering, and more

Release Notes:

Signed streams and public streams. One secret to rule them all. Public mode.
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’» Threads, callbacks, and execution context in Ruby

❀ Read slides from at
RUBYCONF AU
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’» RAILS PRO TIPS

Rails 7.1 has finally introduced enum validation
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‡ πŸ‡Handling Exceptions in Grape for Ruby

Grape is a popular Ruby framework for building RESTful APIs. Exception handling plays a crucial role in ensuring the stability and reliability of any application, including those made with Grape.

This article will explore the basics of Grape exception handling, including customizing exceptions. We'll also touch on some best practices, and how to integrate your app with AppSignal for enhanced error monitoring and management.
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’» DHH about Rails 8

Rails 8 is going to be such a leap forward in production deployment ease. Kamal 2 will get auto-configuring SSL via Let's Encrypt + multi apps on a single host. Thruster will give Puma HTTP/2, X-Sendfile, and asset caching. Both will be included by default.
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’»Hotwire Weekly: Week 16 - Turbo Overview Guide, Turbo Native pull-to-refresh, and more

This edition of Hotwire Weekly covers the latest articles, tutorials, videos, libraries, tools, and releases in the Hotwire ecosystem.

Happy reading! πŸš€βœ¨
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’» Episode #1 – Basecamp's Kamal code walkthrough

In this episode, I explore Basecamp's Kamal codebase. Since this is the first video on the channel, I try to explain why I decided to start it, what motivates me, and what I plan to record in the future.
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’» rails console

Make your instance variables, methods, and aliases instantly accessible in the Rails Console
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’» Episode #2 – Maybe, open-source personal finance Rails app

In this episode, explore the Maybe finance codebase. The original version of Maybe was written in React and then open-sourced. In February 2024, Josh Pigford started to rewrite it in Rails. What is done within two months, what can be improved, what tools and libraries are used – all these in this video.
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’» RAILS PRO TIPS

Take advantage of the Rails 6 destroy_by method to conditionally destroy multiple records
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”Œ AnyCable for Ruby on Rails: How Does it Improve over Action Cable?

In modern web applications, real-time communication has become more than a feature: it's gradually evolved into a necessity. Users expect instant updates, live interactions, and dynamic content.
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’» Rails Authentication: Gems vs. Recipes vs. Generators

Here’s how these three approaches compare and contrast with each other. While writing this I learned about a few techniques that I can’t wait to try in the future - hopefully you will, too.
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’»DHH about RailsConf Ruby Central

This is good. With Ruby Central focusing their efforts on general-purpose Ruby endeavors, like maintaining Bundler and RubyGems, as well as putting on RubyConf, the division of responsibilities between it and The Rails Foundation is now clear.
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’» Persisting Stream Mode Value - Clipflow - Part 7

In this episode we will store the stream mode value against the user in a jsonb options column in the database. This will happen when the user toggles stream mode so that it is persisted between page refreshes.
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’¬ PWA (Progressive Web Apps) in Rails 8

Make your Rails website behave like an installable app by turning it into a PWA.

All new Rails apps will have a webmanifest by default, meaning your app will be a Progressive Web App out of the box!

In this episode we will explore how PWAs work.
Please open Telegram to view this post
VIEW IN TELEGRAM