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