You know the city, now save the date: #RailsWorld 2024 will take place Sept 26 & 27. Mark your calendars! More info (tickets, sponsorships, cfp. etc) coming soon.
In this episode, we look at refactoring a model with a few different approaches; modules, classes and concerns. We'll explore each implementation and when I'd use one over the other.
Please open Telegram to view this post
VIEW IN TELEGRAM
Better Mailer Previews: A Way to Preview ActionMailer Email Templates — A Rails engine that builds on top of native Rails mailer previews with enhancements including seeing live, resizable previews, and the ability to forward previews to an email address.
New edition of This Week in Rails
There's a fix in travel_to, restores support for object_id as model attribute, defines fieldset_tag to match the spelling of the HTML tag, and more!
⚡ Rails Week
There's a fix in travel_to, restores support for object_id as model attribute, defines fieldset_tag to match the spelling of the HTML tag, and more!
⚡ Rails Week
Ruby on Rails
Allow object_id as a column name for Active Record and a lot more!
Take Active Record affixes into account for Active Storage database modelsThis pull request ensures that all Active Storage database-related models adhere to the ActiveRecord::Base.table_name_prefix configuration.
Ruby 3.3.0 Release Candidate 1 Released — We’re now just 11 days from the final release, but Shopify is already using this in production. There are few changes since preview 3, though I note ‘code GC’ is now disabled by default, but this seems like a good thing for performance in most cases.
DHH about Rails 8
The primary mission for my contributions toward Rails 8 is now crystal clear: PWA. We can extract all the finickiness around web push notifications, for example, and make it trivially easy to use.
The primary mission for my contributions toward Rails 8 is now crystal clear: PWA. We can extract all the finickiness around web push notifications, for example, and make it trivially easy to use.
Introducing Solid Queue
A new DB-based queuing backend for Active Job that we open-sourced today.
https://dev.37signals.com/introducing-solid-queue/
A new DB-based queuing backend for Active Job that we open-sourced today.
https://dev.37signals.com/introducing-solid-queue/
37signals Dev
Introducing Solid Queue
A new DB-based queuing backend for Active Job that we open-sourced today.
Enqueue Multiple Jobs Together with perform_all_later in Rails
Are you still looping over the list of jobs to enqueue them individually? This post explores the new
Are you still looping over the list of jobs to enqueue them individually? This post explores the new
perform_all_later
method in Rails, which was introduced in Rails 7.1 and lets you enqueue multiple jobs together to reduce the round-trip to the job backend, like Redis or the database.Digging into Turbo 8's Morphing Feature in Ruby on Rails
The gist of the blog post and talk is that Turbo frames and streams are useful but often cumbersome to integrate since they are highly focused containers of logic.
They won’t be going away but might be more of a _special-use_ tool coming up with the introduction of morphing which could be a more convenient and useful “default” much like the standard full-page reloads of historical Rails apps.
The gist of the blog post and talk is that Turbo frames and streams are useful but often cumbersome to integrate since they are highly focused containers of logic.
They won’t be going away but might be more of a _special-use_ tool coming up with the introduction of morphing which could be a more convenient and useful “default” much like the standard full-page reloads of historical Rails apps.
DHH about Rails 8
Rails 8 is slated for a 2024 release. This milestone will gather some of the intentions on what it'll include.
💻 https://github.com/rails/rails/milestone/87
Rails 8 is slated for a 2024 release. This milestone will gather some of the intentions on what it'll include.
Please open Telegram to view this post
VIEW IN TELEGRAM
GitHub
rails/rails
Ruby on Rails. Contribute to rails/rails development by creating an account on GitHub.
Daily Log code deep dive - Strada
The second video in a series diving into the code of Daily Log, an open source Ruby on Rails and Turbo Native app.
This video focuses on building native Swift components with Strada. I cover how to wire up a native button powered by HTML and a Stimulus controller.
📺 View on YouTube
The second video in a series diving into the code of Daily Log, an open source Ruby on Rails and Turbo Native app.
This video focuses on building native Swift components with Strada. I cover how to wire up a native button powered by HTML and a Stimulus controller.
Please open Telegram to view this post
VIEW IN TELEGRAM
Here's what's coming in Rails 8
Work on Rails 8 is starting, so I dug through the official GitHub milestone to break down all the upcoming goodies for you. There's plenty coming, including Solid Queue, Solid Cache and Kamal becoming defaults, better support for PWAs, an official LSP, and more!
Read more →
Work on Rails 8 is starting, so I dug through the official GitHub milestone to break down all the upcoming goodies for you. There's plenty coming, including Solid Queue, Solid Cache and Kamal becoming defaults, better support for PWAs, an official LSP, and more!
Read more →
8 Turbo 8 "Gotchas"
As the final release of Turbo 8 nears, there are a few “gotchas” worth knowing about that will make life easier as you start updating existing Rails Turbo apps to take advantage of all the new features that Turbo 8 offers, like page morphs
❤ fly.io/ruby-dispatch
As the final release of Turbo 8 nears, there are a few “gotchas” worth knowing about that will make life easier as you start updating existing Rails Turbo apps to take advantage of all the new features that Turbo 8 offers, like page morphs
Please open Telegram to view this post
VIEW IN TELEGRAM
💻 This Week in Rails is out! Among the updates:
- the default number of threads in Puma config has now been updated from 5 to 3
- Object#with block support added
- 'explain' support for methods like last, pluck and count
Check it all out here:
❤️ this-week-in-rails
- the default number of threads in Puma config has now been updated from 5 to 3
- Object#with block support added
- 'explain' support for methods like last, pluck and count
Check it all out here:
Please open Telegram to view this post
VIEW IN TELEGRAM
Ruby on Rails: Compress the complexity of modern web apps
Updated Puma configuration, Object#with block support, and more!
Hi! Vipul here with the second edition of This Week in Rails for 2024!
DHH about Turbo 8
Instaclick-style hover preloading of links is coming to Turbo 8. Remarkable how effective it is for perceived performance hundreds of ms saved in many cases.
💻 Add InstantClick behavior
Instaclick-style hover preloading of links is coming to Turbo 8. Remarkable how effective it is for perceived performance hundreds of ms saved in many cases.
Please open Telegram to view this post
VIEW IN TELEGRAM
GitHub
Add InstantClick behavior by davidalejandroaguilar · Pull Request #1101 · hotwired/turbo
Description
This PR adds InstantClick-like behavior to Turbo. For those not familiar with it, what it does is prefetch links that are likely to be clicked on.
Before visitors click on a link, they...
This PR adds InstantClick-like behavior to Turbo. For those not familiar with it, what it does is prefetch links that are likely to be clicked on.
Before visitors click on a link, they...
Rails 7.1.3 has been released
https://rubyonrails.org/2024/1/16/Rails-7-1-3-has-been-released
Action Mailer has a new method to deliver enqueued jobs: deliver_enqueued_emails. It works with and w/out a block. With a block, it delivers all emails within the block. It also accepts a 'queue' option, which delivers the emails held in 'queue'.
https://rubyonrails.org/2024/1/16/Rails-7-1-3-has-been-released
Action Mailer has a new method to deliver enqueued jobs: deliver_enqueued_emails. It works with and w/out a block. With a block, it delivers all emails within the block. It also accepts a 'queue' option, which delivers the emails held in 'queue'.
How to Add Live Reload to Your Rails Application
Live reload is an incredible tool for developers looking to boost their productivity. In this tutorial, I will walk you through the process of implementing live reload in your Ruby on Rails application using esbuild.
📺 View on YouTube
Live reload is an incredible tool for developers looking to boost their productivity. In this tutorial, I will walk you through the process of implementing live reload in your Ruby on Rails application using esbuild.
Please open Telegram to view this post
VIEW IN TELEGRAM
How to deal with PostgreSQL Backups using Kamal
What is Kamal
Developed by 37signals (creators of Ruby on Rails, Basecamp and Hey), Kamal is a modern evolution of Capistrano for the world of containerised applications.
In addition to its hassle-free deployment on servers, whether virtual machines or bare metal, Kamal is known for its zero downtime deployments and rolling restarts. This ensures continuous service availability.
What is Kamal
Developed by 37signals (creators of Ruby on Rails, Basecamp and Hey), Kamal is a modern evolution of Capistrano for the world of containerised applications.
In addition to its hassle-free deployment on servers, whether virtual machines or bare metal, Kamal is known for its zero downtime deployments and rolling restarts. This ensures continuous service availability.
www.botzenhart.io
How to deal with PostgreSQL Backups using Kamal // Stefan Botzenhart
Streamlining Database Backups with Kamal: A Guide to Efficient and Secure Data Management in Containerized Environments.
Dive into the world of testing with us in this guide on working with tests in RubyMine. Whether you're a seasoned developer or just starting, we've got you covered!
Please open Telegram to view this post
VIEW IN TELEGRAM