tl;dr Set profile.password_manager_leak_detection to false in your Selenium Chrome options to disable password leak detection and...
Say you wrap your index view in a form to apply different filters like pagination or a search query. On...
DirectUpload allows you to upload files to your file storage without having to wait for the form to submit. It...
ActiveStorage does not provide any built-in way of implementing authentication for the available DirectUpload endpoint in Rails. When using...
Haml renders HTML with indentation reflecting the nesting level of elements. When it comes to white-space preserving content, this...
Rails wraps your parameters into an interface called StrongParameters. In most cases, your form submits your data in a nested...
Some key highlights and points from the linked article TestProf II: Factory therapy for your Ruby tests. The Problem with...
Starting with ChromeDriver 127, if your application displays a beforeunload confirmation dialog, ChromeDriver will immediately close it. In consequence, any...
I recently stumbled upon the Rails feature composed_of. One of our applications dealt with a lot of addresses and...
ActiveModel classes have a class method .human_attribute_name. This returns a human-readable form of the attribute: Person.human_attribute...
This card describes four variants, that add a more intuitive workflow when working with nested attributes in Rails + Unpoly:
A common cause of non-accessible web pages are elements that were made interactive via JavaScript but cannot be focused...
Any form fields where users enter numbers should be an . Numeric inputs have several benefits over : On mobile or tablet...
Version 3.7.0 broke some things in complex forms. Sorry for that. Concurrent user input is hard. 3.7.1 This change fixes...
In Capistrano 3, your Capfile requires 'capistrano/rails/migrations', which brings two Capistrano tasks: deploy:migrate and deploy:migrating. The former checks...
Added: State machine can now use the :prefix-option to avoid name collision if you define multiple state machines on...
The recommended additional setup of the spreewald gem, a useful set of cucumber steps, includes adding a file for defining...
Rails' url_for is useful for generating routes from a Hash, but can lead to an open redirect vulnerability.
It's quite confusing how many external displays are usable with a MacBook that uses an M1 or M2 Chip...
Web forms can be made much more usable with a few HTML attributes. Short summary: type: Tells browsers about the...
Every Rails response has a default ETag header. In theory this would enable caching for multiple requests to the same...
Usually you add errors to :base in ActiveRecord, in case no appropriate attribute could be used to add the error...
Let's say we have posts with an attribute title that is mandatory. Our example feature request is to tag...
The change_column method for rails migrations support casting with a custom SQL statement. This allows us to change a...