Optimistic UI with Ruby on Rails & Hotwire
A proof-of-concept for optimistic UI with Hotwire and Rails
Optimistic UI with Ruby on Rails & Hotwire
A proof-of-concept for optimistic UI with Hotwire and Rails
In Ruby, curly braces can be omitted from hashes not only when the hash is the last argument of a method, but also when itβs the last item in an array: [1, 2, three: :four]
. Neat!
Ruby's Array#inquiry, Rails' truncate with block
RailsInspire: a directory of patterns for Ruby on Rails apps. I particularly like the interface. It simply highlights the files needed to implement the pattern, including explanatory annotations. Really nice work from Jeremy Smith.
CSS media feature: @media (hover|any-hover: hover) {β¦}
, useful for preventing annoying ghost hover states on touch devices. Via Sam Selikoff on Twitter.
rbenv-gem-migrate to migrate gems to a new version
:placeholder-shown
CSS pseudo selector: could be really useful for conditionally displaying adjacent/sibling depending on whether the input has a value.
Customise how Ruby destructures an object by defining a deconstruct_keys
method.