Ruby on Rails | rubyclub
1.53K subscribers
214 photos
1 video
264 links
Software Writer @yegorckv
Download 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
πŸ’» Short Ruby News - Edition #90

The one when we celebrate RailsConf 2024
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’» Rails Concerns vs. Modules and when to use each

As a novice or professional Ruby on Rails developer, you're likely familiar with the concepts of Concerns and Modules. Both are used to organize and reuse code but have different purposes and distinct use cases.
Please open Telegram to view this post
VIEW IN TELEGRAM
⚑️ Running Solid Queue in production Rails apps

Say goodbye to the complexities and costs of managing external services like Redis, and hello to Solid Queue. In this article, we'll explore using Solid Queue to process background jobs, from integration to deployment, and even monitoring!
πŸ™BalticRuby 2024

This is a community-driven conference traveling across the Baltic Sea promoting the growth of local communities and the global Ruby/Rails ecosystem.

Here are the highlights of why it's worth attending.
πŸ‘‰ Speakers from more than 10 countries, representing both local and global communities, include Yukihiro Matz Matsumoto, Sam Giddins, Cristian Planas, Erica Weistrand, Tobias Pfeiffer, Jānis BaiΕΎa, Stephen Margheim, and more!
πŸ‘‰ There will be also an OSS expo along the main track. Folks from Rails Core and Ruby Central are joining, as well as maintainers and contributors from Active Record, ViewComponent, Hotwire, and more.
πŸ‘‰ A bootcamp for juniors, prepared by Steven R. Baker - the creator of rSpec - along with MalmoRB community

All the details are here: https://balticruby.org/

And specially for all the members here BalticRuby prepared a hot offer.
🎟 Grab your "Personal" ticket with a 30% discount now: https://pretix.eu/balticruby/tickets/redeem?voucher=Z75R6UMXVKDX8PMC
🎫 Or get a progressive discounts up to 30% for "Employee" tickets for companies: https://pretix.eu/balticruby/tickets/
πŸ›ŽοΈ All the attendees can enjoy a 20% discount on accommodation at the nearby Malmo Arena Hotel.

Get your ticket and sea ya on the Baltic shore πŸ˜‰