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
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).
Please open Telegram to view this post
VIEW IN TELEGRAM
GitHub
GitHub - EugZol/datacaster: Run-time type checker and transformer for Ruby
Run-time type checker and transformer for Ruby. Contribute to EugZol/datacaster development by creating an account on GitHub.
DHH about: Ruby on Rails: The Documentary
In perfect timing for our 20th birthday of Rails, the fine folks at Honeypot have created a wonderful documentary about the early origins of the framework.
In perfect timing for our 20th birthday of Rails, the fine folks at Honeypot have created a wonderful documentary about the early origins of the framework.
YouTube
Ruby on Rails: The Documentary [OFFICIAL TRAILER]
"What the fuck is Ruby?"
Love it or hate it, you probably have some opinions about Ruby on Rails and its creator, David Heinemeier Hansson. Rails has been around for almost 20 years, and its creation was not a beautiful fanfare-laden affair. Angel investors…
Love it or hate it, you probably have some opinions about Ruby on Rails and its creator, David Heinemeier Hansson. Rails has been around for almost 20 years, and its creation was not a beautiful fanfare-laden affair. Angel investors…
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
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.
Please open Telegram to view this post
VIEW IN TELEGRAM
@railsclub
Please open Telegram to view this post
VIEW IN TELEGRAM
Drifting Ruby
Episode 422 - Embedding Stripe Checkout | Drifting Ruby
Stripe Checkout is one of my favorite ways to handle payments in Ruby on Rails applications. Stripe Checkouts will soon have an option to embed the Checkout into your web application. In this episode, we'll look at implementing this feature with a StimulusJS…
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
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!
@rubyclub
Please open Telegram to view this post
VIEW IN TELEGRAM
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.
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
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!
Please open Telegram to view this post
VIEW IN TELEGRAM
YouTube
Rails World 2023 Opening Keynote - David Heinemeier Hansson
In the Opening Keynote of the first Rails World, Ruby on Rails creator and @37signals CTO David Heinemeier Hansson (@davidheinemeierhansson9989) covered a lot of ground, including introducing 7 major tools: Propshaft, Turbo 8, Strada, Solid Cache, Solid Queue…
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
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.
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
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.
Please open Telegram to view this post
VIEW IN TELEGRAM
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
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.
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
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
SupeRails creator and Rails mentor Yaroslav Shmarov shares how some of the most common frontend problems can be solved with Hotwire.
Please open Telegram to view this post
VIEW IN TELEGRAM
Better Rails Forms with Superform
Rails form helpers have been around for so long that they seem unquestionable, but did you know there’s a way to build forms in Rails that are easier to customize and permit their own strong parameters?
❤️ fly.io
Rails form helpers have been around for so long that they seem unquestionable, but did you know there’s a way to build forms in Rails that are easier to customize and permit their own strong parameters?
Please open Telegram to view this post
VIEW IN TELEGRAM
Rails World 2023 - Strada
Strada is the missing library to take your Turbo Native apps to the next level. Turbo Native enables web developers to ship native apps, but the experience is limited to a WebView container within a native shell. The native app doesn’t have any knowledge about the web content that is being rendered, but Strada bridges that gap.
Strada is the missing library to take your Turbo Native apps to the next level. Turbo Native enables web developers to ship native apps, but the experience is limited to a WebView container within a native shell. The native app doesn’t have any knowledge about the web content that is being rendered, but Strada bridges that gap.
Telegraph
Rails World 2023 - Strada
Jay Ohms - Strada: Bridging the web and native worlds Joe Masilotti - Just enough Turbo Native to be dangerous https://t.iss.one/railsclub
Chatbot with Ruby on Rails, Turbo Streams, and OpenAI
In this episode, we build a chatbot in Ruby on Rails using Turbo Streams to create a real-time chat experience.
📺 View on YouTube
In this episode, we build a chatbot in Ruby on Rails using Turbo Streams to create a real-time chat experience.
Please open Telegram to view this post
VIEW IN TELEGRAM
DHH about Skiff
Skiff is a new, small tool for deploying static marketing sites using Kamal. Built on #NoBuild ideas, stone-age tools like Server Side Includes, and running with nginx.
💻 View on GitHub
▶️ Review from DHH
@railsclub
Skiff is a new, small tool for deploying static marketing sites using Kamal. Built on #NoBuild ideas, stone-age tools like Server Side Includes, and running with nginx.
@railsclub
Please open Telegram to view this post
VIEW IN TELEGRAM
FactoryBot for Rails testing
In the Ruby community, there's near-unanimous agreement on the importance of testing. Tests act as a safeguard, ensuring that the digital experiences we craft remain consistent, reliable, and of high quality. Many in the Ruby community claim that no code change is complete without tests.
⚡ Dive into FactoryBot to ensure your testing data is reliable and consistent
In the Ruby community, there's near-unanimous agreement on the importance of testing. Tests act as a safeguard, ensuring that the digital experiences we craft remain consistent, reliable, and of high quality. Many in the Ruby community claim that no code change is complete without tests.
⚡ Dive into FactoryBot to ensure your testing data is reliable and consistent
Honeybadger Developer Blog
FactoryBot for Rails testing
Dive into FactoryBot to ensure your testing data is reliable and consistent.
⚡ Rails Domain Redirects
Is your Rails app available at multiple domains, but you only want to serve requests from one of them? Here's how to handle that at the app level.
⚡ Constraints in Rails Router
The next step to customizing router is to dig a li’l deep down into the Rails Router where we can find some features like ‘Constraints’.
Is your Rails app available at multiple domains, but you only want to serve requests from one of them? Here's how to handle that at the app level.
⚡ Constraints in Rails Router
The next step to customizing router is to dig a li’l deep down into the Rails Router where we can find some features like ‘Constraints’.
Ruby on Rails: The Documentary
Ruby on Rails has one of the most faithful communities online, it also has one of the most controversial, rabble-rousing creators out there, Danish programmer, David Heinemeier Hansson. Widely known as DHH, David tells us how Rails went from a crazy idea to one of the most talked-about full-stack frameworks over the course of 20 years.
📺 View on YouTube
Ruby on Rails has one of the most faithful communities online, it also has one of the most controversial, rabble-rousing creators out there, Danish programmer, David Heinemeier Hansson. Widely known as DHH, David tells us how Rails went from a crazy idea to one of the most talked-about full-stack frameworks over the course of 20 years.
Please open Telegram to view this post
VIEW IN TELEGRAM