In the first video of this new series, we're diving into a Rails feature that can transform how you manage your app's database relationships - Delegated Types. Introduced in Rails 6.1, this feature offers a new approach to multi-table inheritance, providing a more efficient and type-safe alternative to Single Table Inheritance (STI) and classic Polymorphism
Please open Telegram to view this post
VIEW IN TELEGRAM
This is the FREE version of my recently released course, Hello Hotwire. You can get the full course and premium content at hellohotwire.com
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
In his RailsWorld talk, Emmanuel will cover PWA basics, the service worker lifecycle, offline strategies via background sync, and the CacheStorage API for cross-device performance. Come join his talk to find out how it all works:
https://rubyonrails.org/world/2024/day-1/emmanuel-hayford
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Use ActionView's cycle to alternate background colors automatically.
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
This Week in Rails: Solid Cable as default, 2 new Guides PRs, and much more.
Please open Telegram to view this post
VIEW IN TELEGRAM
Rails partials have been around for years, but they can be clunky since they're just ERB snippets without a backing object structure.
Recently, libraries like ViewComponent and Phlex have tried to improve the view layer by adding more semantic structure to the templates. These are great libraries and I personally reach for ViewComponent on almost every project I work on. That said, I still feel the humble Rails partial still works great for many use cases.
ποΈ If you're entertained by all things DHH, Rails' creator David Heinemeier Hansson
Please open Telegram to view this post
VIEW IN TELEGRAM
Rails 8 will support Progressive Web Apps (PWA) out-of-the-box but you have all the tools you need to make your Rails app installable today
Please open Telegram to view this post
VIEW IN TELEGRAM
Hotwire Native is officially here! π
It's Turbo Native + Strada + a bunch of improvements.
π» Announcing Hotwire Native
It's Turbo Native + Strada + a bunch of improvements.
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Everything you need to go from HELLO WORLD to production on any Linux server, whether Cloud VM or a Pii in your closet, is included.
Solid Queue 1.0 has been released
This clean-sheet database backend for Active Job is already running 20 million jobs per day for Hey, and together with the rest of the Solid Trifecta in Rails 8 has removed the need for Redis in production.
Kamal 2.0 has been released
Now with a own bespoke Kamal Proxy, which brings auto SSL certificates and multiple-apps-on-a-single-box, with virtually no configuration. It's never been easy to avoid PaaS, embrace your own server, and deploy to prod.
Please open Telegram to view this post
VIEW IN TELEGRAM
At Lifen, weβve loved Rails from the beginning. We have several Rails applications, each with different scopes and teams, all using PostgreSQL as the main database. Some of these applications handle a significant amount of traffic, and their databases need to be properly monitored. This is done by the infrastructure team and the developers themselves using PgAnalyze, Grafana and sometimes AWS console with "Performance Insight".
Please open Telegram to view this post
VIEW IN TELEGRAM
Hotwire Native is a combination of Turbo Native + Strada + Turbo Navigator
Please open Telegram to view this post
VIEW IN TELEGRAM
Kamal 2
The big demo for Kamal 2 is done. The why, the how, and deployment of both Go and Rails apps, single server and fleet.
Note that this uses the Rails 8 beta! Install with "gem install rails --pre" before following along at home.
The big demo for Kamal 2 is done. The why, the how, and deployment of both Go and Rails apps, single server and fleet.
Note that this uses the Rails 8 beta! Install with "gem install rails --pre" before following along at home.
The first Rails 8 beta has officially been released, bringing an exciting set of features, bug fixes, and improvements. This version builds on the foundation of Rails 7.2, while introducing new features and optimizations to make Rails development even more productive and enjoyable.
Please open Telegram to view this post
VIEW IN TELEGRAM
Here is the link:
https://www.rubanonrails.com/2/cookie-based-authentication-with-rails
Please open Telegram to view this post
VIEW IN TELEGRAM
For when you don't want go full Inertia.
Please open Telegram to view this post
VIEW IN TELEGRAM
β Install & use Bridge Button Component
β Extend Bridge Button to accept icons
β Button to redirect OR execute JS
β Learn what happens if there are multiple bridge buttons defined in your HTML
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM