Ruby on Rails | rubyclub
1.52K subscribers
214 photos
1 video
264 links
Software Writer @yegorckv
Download 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 ๐Ÿ˜‰
๐Ÿ’ป 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