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

A Curated List of 945 Ruby Libraries and Tools β€” Every year or two, we link to this epic, categorized collection of Ruby goodies. It continues to be updated frequently with new entries added (such as the new section on Gem servers) and you’re encouraged to contribute your own projects too
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’» Take the habit of using pick(*column_names) instead of pluck(*column_names).first
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘©β€πŸ’» Top Five PostgreSQL Surprises from Rails Developers

Dive Deeper Into PostgreSQL Capabilities
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’» Take advantage of the SimpleDelegator class to seamlessly separate view logic from models using presenters
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’»Rails Developer Answers Questions about Strada

Hey everyone welcome back to the channel in this video I am back on Hotwired Discussion answering questions and helping people learn the Hotwire frameworks. I helped somebody get there Turbo IOS working with Strada with there top navigation button something I built recently in this video
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’» Do you remember Rails nilify_blanks gem? With Rails 7.1

ActiveRecord::Base::normalizes you can get similar results out of the boxx
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’» Episode #3 – Writebook by ONCE

Hey everyone! Welcome back to Ruby&Beyond! Today, we're diving into the Writebook project from ONCE.com by 37 Signals. I’ll take you through the code, showing you how it’s all put together. Whether you're new to Ruby or have been at it for a while, you'll find some cool tips and tricks in this walkthrough.
Please open Telegram to view this post
VIEW IN TELEGRAM
Vite Ruby

Vite Ruby is an umbrella project that provides full Vite.js integration in Ruby web apps.

vite_rails provides similar functionality as webpacker does for webpack, without all the configuration overhead and dependencies.

vite_ruby can be used in plain Rack apps, and is all you need when using HTML entrypoints.

There are also integrations for Jekyll, Hanami, and Padrino.
DHH

Solid Queue now runs close to 20 million jobs daily, just for HEY. When we are done migrating all the apps, we will be processing nearly 100 million jobs per day through Solid Queue. It'll be a very SOLID 1.0