Rafe Rosen đã retweet
Rafe Rosen
1.3K posts

Rafe Rosen
@existentialmutt
Father, Homesteader, and Freelance Ruby Developer. he/him. Black Lives Matter. @[email protected]
Vermont, USA Tham gia Temmuz 2009
639 Đang theo dõi277 Người theo dõi

@_swanson I really try to avoid the metaprogramming shortcut here. It makes the references to the associations much harder to grep for. Here's how I would DRY it up

English
Rafe Rosen đã retweet
Rafe Rosen đã retweet
Rafe Rosen đã retweet

It’s looking like my next #stimulusjs controller is going to replicate basic HTML form behavior using FormData and fetch 🧵
English

@existentialmutt You can also put multiple forms somewhere else in the DOM and then connect inputs and buttons via the form attribute. I’ve used this “portal” approach before and it worked like a charm. No JS needed, just regular HTML features
English

You see, my nifty #hotwire based component has its own forms, and it breaks when embedded inside an enclosing form because you can’t nest forms in HTML.
English

YARP has been merged!
Next up, writing the YARP to ISEQ compiler, more tests, improvements to error messages and tolerance, and better memory usage.
Exciting times!
github.com/ruby/ruby/pull…
English

Going to be taking a hiatus from posting here as I'm going on paternity leave for kiddo #2. See you all in June!
English

Big shout-out to @etagwerker@mastodon.social and @fastrubyio@birdsite.slashdev.space . Tools like Railsbump and their free ebook on upgrading rails apps helped me along the way.
railsbump.org
English










