Ruby on Rails | rubyclub
1.53K subscribers
216 photos
1 video
266 links
Software Writer @yegorckv
Download Telegram
DHH has introduced Kamal 1.0.

Now you can deploy web applications on various platforms, ranging from physical servers (so-called "bare metal") to virtual machines in the cloud.

Kamal provides continuous deployment without downtime, smooth restarts, resource bridging, remote building, management of additional services, and everything you need to deploy and manage your web application in production using Docker.

Originally designed for Rails applications, Kamal will work with any type of web application that can be containerized. Learn more in DHH's overview.

https://kamal-deploy.org/
DHH has released Strada

Strada is finally here! The last piece of the Hotwire trifecta has been released. Kudos to Jason and his team for the significant effort. I'm thrilled that every part of our story in interface and mobile development is now open source.

Check it out at https://strada.hotwired.dev/

"This has been Hotwire's mission from the start. Empower individual developers to independently create and deliver full-featured experiences across all platforms."

Read more about Finishing Hotwire with the introduction of Strada: https://world.hey.com/dhh/finishing-hotwire-with-the-introduction-of-strada-9efdf091
Strada officially launched!

Strada provides structure and organization to the tangled mess that is the JavaScript bridge. It simplifies and standardizes communication between web and native components, which makes building robust native elements a joy.

Strada example:

🎯 https://masilotti.com/strada-launch/

Announcing Strada:

https://dev.37signals.com/announcing-strada/
Rails GraphQL authentication from scratch

Devise is an awesome gem to add authentication for your rails application, but it may me a bit overkill solution if you are going to develop REST or GraphQL API for your SPA or mobile application. Today I’ll show you how to create GraphQL API without devise. I’ll use some methods that become available in rails 7.1.0.beta1, so please install this or higher version.

https://alec-c4.com/posts/2023-09-22-graphql-from-scratch
https://alec-c4.com/posts/2023-09-25-graphql-from-scratch-2
DHH about YJIT

YJIT is juicy! We're seeing +24% faster on the median, +12% on the average, and +10% on the P90 with Ruby 3.3 using YJIT in production on basecamp. Major kudos to the fine folks at ShopifyEng for making this happen 👏
🇩🇪 Germany Continues to Invest in Ruby

The German government's Sovereign Tech Fund is a publicly funded effort to support ‘open digital infrastructure.’ With a new round of funding for Ruby Central, the fund is showing a huge level of support for Ruby by helping to fund all sorts of things, including a 24/7 rotation of folks to handle critical security issues. Danke!

RUBY CENTRAL
Datacaster

This gem provides DSL for describing in a composable manner and performing run-time type checks and transformations of composite data structures (i.e. hashes/arrays of literals). Inspired by several concepts of functional programming such as monads.

Detailed error-reporting (with full i18n support) is one of a distinct features. Let your API consumer know precisely which fields and in a what manner are wrong in a deeply nested structure!

It is currently used in production in several projects (mainly as request parameter validator).

💻 View on GitHub
Please open Telegram to view this post
VIEW IN TELEGRAM
Rails 7. StartKit + pgAdmin 4

StartKit helps to launch Ruby on Rails application in minutes on any Platform. In this video we will see how to use pgAdmin4 with the project.

📺 View on YouTube
Please open Telegram to view this post
VIEW IN TELEGRAM
DHH about Kamal

What I love about Kamal is how it gives plain cloud hosts like Hetzner the deployment ergonomics of something like Heroku but at a sliver of the cost. Look at these instance prices! 💻kamal-deploy.org

@rubyclub
Please open Telegram to view this post
VIEW IN TELEGRAM
👩‍💻 Using esbuild and Bootstrap in a Rails 7 Project by Replacing the Default Importmap

In this article, we will explore how to integrate es build and Bootstrap into a Rails 7 project by replacing the default importmap. Rails 7 comes with a default bundle import map, but we can still leverage the power of esbuild for efficient CSS and JavaScript bundling. By doing so, we can take advantage of esbuild’s lightning-fast bundling capabilities and enhance our application’s performance.

View on Medium
Please open Telegram to view this post
VIEW IN TELEGRAM
DHH on RailsWorld

My opening keynote from #RailsWorld is now online! Solid Cache, Solid Queue, Mission Control, Kamal, Turbo 8, Strada, and Propshaft. A celebration of new and upcoming tools for The One-Person Framework and The Renaissance Developer. Enjoy!

📺 View on YouTube
Please open Telegram to view this post
VIEW IN TELEGRAM
Turbo Native crash course next week

Here’s what you'll learn:

How to use Turbo Native - Integrate the framework into Xcode.

How to navigate - Turbo Navigator for navigation flows.

How to progressively enhance - Hidden Rails helpers to work with native.

How to authenticate users - Remain signed in between launches.

How to add native components - Strada for Swift components via HTML.

The live session will be hosted on Zoom so you can ask questions or get help if you get stuck.

Crash course
Please open Telegram to view this post
VIEW IN TELEGRAM
Mastering Turbo Frames and Turbo Streams in Rails 7: Build a Journal Entry Tagging Feature

Learn how to add seamless client-side interactivity to your Rails 7 application without writing a single line of custom JavaScript! In today's tutorial, I walk you through a hands-on example where we enhance a journaling app, allowing users to manage tags dynamically. All of this is achieved using Turbo Frames and Turbo Streams.

📺 View on YouTube
Please open Telegram to view this post
VIEW IN TELEGRAM
👩‍💻 7 new tools introduced in DHH's Rails World keynote

Here is a brief overview of the tools announced by DHH during the keynote of Rails World 2023:

Propshaft, Turbo 8, Strada, Solid Cache, Solid Queue, Mission Control, and Kamal.

- Propshaft: Best bundling is no bundling, see all of Hey's frontend code in your browser.

- Turbo 8: Turbo morphing will keep your old state and scroll position intact enabling smooth transitions. View Transitions only supported in Chrome, but worth investment already for the bright future. No more TypeScript.

- Strada: Last piece of Hotwire driving native controls in mobile applications.

- Solid Cache: Redis is great, but we don't need it anymore as it's 5-10x pricier than disk. An affordable way to keep data around for much longer (months vs days). Cache trimming + Encryption + Sharding.

- Solid Queue: Replace 6 queue gems with one (from Resque) and drop Redis completely. GoodJob as inspiration, MySQL needed.

- Mission Control: A new dashboard for ActiveJob originally built for Resque after an outage at Basecamp.

- Kamal: Enable 37signals to sell self-hosted software. Deploy your Rails app (and even non-rails one) with zero downtime.
Please open Telegram to view this post
VIEW IN TELEGRAM
Some ViewComponent tips

If you're reading this, you know about View Components. Odds are that like me, you love them! You've probably also heard of Phlex, but decided to favour ViewComponents. You might even be keeping up with recent Rails improvements, like allowing templates to define which locals they accept.

If you use ViewComponents in your Ruby on Rails apps, read this article.

💻 Read more
Please open Telegram to view this post
VIEW IN TELEGRAM
Deploy Your Rails Applications the Easy Way With Kamal

Kamal is a new deployment tool that makes it easy to deploy your web applications to any server. Is it a good choice for you?

View on Dennmart
Please open Telegram to view this post
VIEW IN TELEGRAM
👩‍💻 Passwordless 1.0: Magic Link Auth for Rails Apps — A system to add password-free ‘magic link’ style authentication to your Rails apps. “This major release .. changes a lot of things and it is almost guaranteed that you will need to change your code to upgrade to this version.”
Please open Telegram to view this post
VIEW IN TELEGRAM
Yaroslav Shmarov - Hotwire Cookbook: Common Uses, Essential Patterns & Best Practices - Rails World

SupeRails creator and Rails mentor Yaroslav Shmarov shares how some of the most common frontend problems can be solved with Hotwire.

📺 View on YouTube
Please open Telegram to view this post
VIEW IN TELEGRAM