The Rails (Edge) Guides got a new facelift today! Read about it on the blog: https://rubyonrails.org/2024/3/20/rails-guides-get-a-facelift
Learn about the Trailblazer framework by refactoring a chunky Rails controller action to an operation. This episode discusses what we understand is business logic and shows how to setup a basic operation with its file structure and test.
All the videos about Trailblazer.
Please open Telegram to view this post
VIEW IN TELEGRAM
Use this commands for new Rails app:
"rails new myapp --main -d=postgresql -c=tailwind -a=propshaft"
"--main" ensures that I have all the goodies that are not available with Rails 7, and will only be released with Rails 8 (presumably around RailsWorld 2024 in September)
New features:
β Built-in PWA (Progressive Web App) support
β Default Github CI config
β Propshaft - lightweight version of sprockets
β Brakeman - security scanner
β Rubocop code linter
You can learn more about all the "rails new" options by typing "rails new --help" in your terminal.
"rails new myapp --main -d=postgresql -c=tailwind -a=propshaft"
"--main" ensures that I have all the goodies that are not available with Rails 7, and will only be released with Rails 8 (presumably around RailsWorld 2024 in September)
New features:
β Built-in PWA (Progressive Web App) support
β Default Github CI config
β Propshaft - lightweight version of sprockets
β Brakeman - security scanner
β Rubocop code linter
You can learn more about all the "rails new" options by typing "rails new --help" in your terminal.
Turbo 8 has been released! One of the core new features hover-click preload acceleration (aka InstantClick).
InstantClick makes an assumption about potential user behaviour: now whenever you hover on a link, it will fire a GET request to retrieve that page. So when you actually click on the link, it will load faster.
Please open Telegram to view this post
VIEW IN TELEGRAM
Save Time with Custom Rails Generators
Learn to create time-saving reliable custom generators quickly and efficiently.
It's time to quit the copy-paste-search-replace dance.
Duplicate an existing file. Then duplicate the corresponding test file. Open them in your editor. Search and replace throughout both files. Manually update or delete a few more things.
Run the tests. Track down spots the search and replace didn't catch. Fix those issues, and run the tests again. Then you can get back to the real work.
That's no way to do things, and yet, we've all done it far too often.
You already apply and re-use basic patterns on a regular basis. You're just doing it the hard wayβeither because you didn't know or because you believed custom generators required more effort than they're worth.
Learn to create time-saving reliable custom generators quickly and efficiently.
It's time to quit the copy-paste-search-replace dance.
Duplicate an existing file. Then duplicate the corresponding test file. Open them in your editor. Search and replace throughout both files. Manually update or delete a few more things.
Run the tests. Track down spots the search and replace didn't catch. Fix those issues, and run the tests again. Then you can get back to the real work.
That's no way to do things, and yet, we've all done it far too often.
You already apply and re-use basic patterns on a regular basis. You're just doing it the hard wayβeither because you didn't know or because you believed custom generators required more effort than they're worth.
βΆοΈ Action View Overview PR: https://github.com/rails/rails/pull/51435
βΆοΈ Action View Helpers PR: https://github.com/rails/rails/pull/51432
Please open Telegram to view this post
VIEW IN TELEGRAM
GitHub
[RF-DOCS] Action View Overview Guide [ci-skip] by bhumi1102 Β· Pull Request #51435 Β· rails/rails
Motivation / Background
This Pull Request is for updating and improving the Action View Overview guide.
Note: This guide was intertwined with a different guide (Layouts and Rendering) with duplicat...
This Pull Request is for updating and improving the Action View Overview guide.
Note: This guide was intertwined with a different guide (Layouts and Rendering) with duplicat...
HotwireCombobox: A Turbo + Stimulus Autocompleting Combobox β Simple, sweet, and well explained on the homepage, complete with live demo. Designed for modern Rails 7 apps. GitHub demo.
Let's take a look at a use case for dry-monads and how to use them
https://dev.to/mengjia/ruby-dry-monads-e14
Please open Telegram to view this post
VIEW IN TELEGRAM
DEV Community
Ruby dry-monads
π€ What is the use case for dry-monads? π return either Success or Failure from some operation From...
Two new guides are now open for community review. If you are well versed in Action View, partials, and helpers, please review and submit your feedback here:
Action View Overview PR
Action View Helpers PR
Add
config.active_record.permanent_connection_checkout
setting This setting determines the action taken when ActiveRecord::Base.connection is accessed: whether it raises an error, emits a deprecation warning, or does nothing.Please open Telegram to view this post
VIEW IN TELEGRAM
Developing web applications with Ruby on Rails is known to be hellishly productive. Whatβs the price of this deal? Letβs talk about design patterns leveraged by the framework responsible for increased productivity and at the same time often acclaimed for being anti-patterns.
Please open Telegram to view this post
VIEW IN TELEGRAM
A comparison of Data.define, Struct, OpenStruct β all ways to conveniently define data objects.
Please open Telegram to view this post
VIEW IN TELEGRAM
Release Notes:
Signed streams and public streams. One secret to rule them all. Public mode.
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
Grape is a popular Ruby framework for building RESTful APIs. Exception handling plays a crucial role in ensuring the stability and reliability of any application, including those made with Grape.
This article will explore the basics of Grape exception handling, including customizing exceptions. We'll also touch on some best practices, and how to integrate your app with AppSignal for enhanced error monitoring and management.
Please open Telegram to view this post
VIEW IN TELEGRAM
Rails 8 is going to be such a leap forward in production deployment ease. Kamal 2 will get auto-configuring SSL via Let's Encrypt + multi apps on a single host. Thruster will give Puma HTTP/2, X-Sendfile, and asset caching. Both will be included by default.
Please open Telegram to view this post
VIEW IN TELEGRAM
This edition of Hotwire Weekly covers the latest articles, tutorials, videos, libraries, tools, and releases in the Hotwire ecosystem.
Happy reading! πβ¨
Please open Telegram to view this post
VIEW IN TELEGRAM
In this episode, I explore Basecamp's Kamal codebase. Since this is the first video on the channel, I try to explain why I decided to start it, what motivates me, and what I plan to record in the future.
Please open Telegram to view this post
VIEW IN TELEGRAM
Make your instance variables, methods, and aliases instantly accessible in the Rails Console
Please open Telegram to view this post
VIEW IN TELEGRAM
In this episode, explore the Maybe finance codebase. The original version of Maybe was written in React and then open-sourced. In February 2024, Josh Pigford started to rewrite it in Rails. What is done within two months, what can be improved, what tools and libraries are used β all these in this video.
Please open Telegram to view this post
VIEW IN TELEGRAM