Tanakai: A Web Scraping Framework for Ruby— Kimurai was a scraping framework that seemingly hibernated a few years ago, but Tanakai is an up-to-date fork that supports Ruby 3+, Cuprite, and lets you work with headless browsers to scrape and interact with modern sites, even those rendered with JavaScript. Glauco Custódio |
The Future of Full-Stack Rails: Turbo Morph Drive— The forthcoming Turbo 8 will include DOM “morphing,” a way to more elegantly take a DOM tree from one state to another, providing a smoother UX. This article (and its sequel) implements morphing in a Rails 7.1/Turbo 7 app to give you a feel for the future. Vladimir Dementyev |
37signals' Jorge Manrubia has also written on this topic in Exploring server-side diffing in Turbo, showing how doing the morphing on the server was also considered, before deciding to go with client-side morphing instead. |
Better Forms with Superform— Superform is another customizable form helper for Rails, but this one is built on Phlex, so the forms should be easier to test. Superform offers a lot, including a better way to handle strong parameters that will prevent errors because you forgot to update the controller. Brad Gessler |
Advanced Usages of Action Policy for Rails— A follow-up to a post we linked two weeks ago, this dives deeper into caching, pre-checks, and more advanced techniques in the new access control framework. Aestimo Kirina (AppSignal) |
💎 If you've not played with it, Crystal is worth a look. Stylistically, it's a heavily Ruby influenced language but statically type checked and compiled. |
Find Ruby Jobs with Hired— Hired makes job hunting easy-instead of chasing recruiters, companies approach you with salary details up front. Create a free profile now.
Hired |
|
Andy Maleh of the Glimmer project has unveiled a variety of scaffolding options for building Glimmer-backed Ruby desktop apps. To show off the potential for this handiwork, he's scaffolded Glimmer Snake, a Nokia-phone style 'snake game' that works seamlessly on macOS, Windows and Linux, all from a gem install . You can try it right now like so: gem install glimmer_snake
glimmer_snake
Nice work. |
|