Ruby on Rails | rubyclub
1.52K subscribers
214 photos
1 video
264 links
Software Writer @yegorckv
Download Telegram
๐Ÿ’ป Rails 8 is coming soon, so DHH will kick off the second edition of #RailsWorld in Toronto with an Opening Keynote highlighting what is new in Rails today, and where the framework is headed tomorrow. The rest of the speakers will be announced in the coming days, so stay tuned for more.
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ’ป Ruby protip:

Sometimes you need to check if a value is in an array and return the value if so.

ActiveSupport adds presence_in so you can do exactly this instead of using a conditional.
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ’ป Rails 7.2 Beta 1: Better production defaults, Dev containers, new guides design, and more

The train for the Rails 7.2 release is leaving the station and weโ€™re excited to announce the first beta release of Rails 7.2
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ’ป Enqueuing jobs inside a transaction is a pitfall that's easy to fall into

Rails 7.2 automatically handles this for you by queuing up jobs _after_ the transaction is committed.
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ’ป Hotwire Comments with Ruby on Rails

Hotwire is a library that brings real-time functionality to your Rails applications. By integrating Hotwire-enabled comments, you can create a more interactive and immersive experience for your readers. Thatโ€™s our focus today.

With Hotwire, we can enhance a typical blob comment with Rails in the following ways:

- Enable real-time commenting without page reloads
- Display new comments as they are posted.
- Update comment counts dynamically.
- Enhance user engagement and encourage discussion.
- Delete and edit comments without reloading pages
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ“ฎ RubyConfTH 2023 - Component Driven UI with ViewComponent gem by Radoslav Stankov

A talk from RubyConfTH 2023, held in Bangkok, Thailand on October 6-7, 2023.
Find out more and register for updates for our next conference at https://rubyconfth.com/
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ’ป Rails pro tips

Did you know that you can use constraints with regular expressions to validate dynamic segments in routes?
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ“ฎ When installing ViewComponent, don't forget to add this line
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ’ป RAILS PRO TIPS

Rails makes implementing Content Security Policy (CSP) HTTP headers easy

For recall, CSP helps prevent the execution of inline scripts and only allows scripts from trusted sources.
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ’ป Endless method - a quick intro

The endless method was added to Ruby version 3.0 in 2020.
Please open Telegram to view this post
VIEW IN TELEGRAM
DHH: Creator of Ruby on Rails shows off his new Ubuntu setup, and lets you copy his setup with one command

โค omakub.org
Please open Telegram to view this post
VIEW IN TELEGRAM
DHH: Rails Programmer at 37signals

We have another programmer opening at 37signals. Fully remote, pay between $170,000 - $201,980, eligible for profit share after 2 years, and the chance to work with some amazing people on Basecamp, HEY, ONCE, Rails, Kamal. Oh, and Linux ๐Ÿ˜„
๐Ÿ’ป How to build a Rails API with rate limiting

How secure is your API? Learn how to build an API with Ruby on Rails and use rack-attack to keep the bad actors out.
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ’ป Rails pro tips

Did you know that Rails 7 now supports virtual columns?

Take advantage of this feature to create virtual columns calculated by the database during INSERT and UPDATE
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ’ป Light Services: A New Ruby Gem for Service Objects

Light Services is a simple yet powerful way to organize your business logic. This Ruby gem helps you build services that are easy to test, maintain, and understand.
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ’ป SaaS on Rails on PostgreSQL | POSETTE 2024

Video of a conference talk about Saas on Rails on PostgreSQL presented by Andrew Atkinson at POSETTE: An Event for Postgres 2024. In this talk attendees will learn how Ruby on Rails and PostgreSQL can be used to create scalable SaaS applications, focusing on schema and query design, and leveraging database capabilities.
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ’ป Turbo Native & Strada: Turning a web-only Rails app native

Going Native: We go step-by-step to turn our web-only Rails app native using Turbo Native & Strada
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ’ป Rails 7 modified the behavior of transaction blocks

Now, early block termination triggers a rollback instead of committing the transaction
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ’ป Refactoring transaction blocks with the endless method

You can use the endless method to name a transaction block in Rails
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ‘ฉโ€๐Ÿ’ป The Short Ruby Newsletter edition 96 is out

Here is a highlight of some of the information inside
Please open Telegram to view this post
VIEW IN TELEGRAM