Posts by Jon Yurek
Hotwired Modals
We can use Hotwire — specifically, Stimulus and Turbo — to create some modals that present a nice, dynamic user experience. And they can do this while staying in a mutli-page app structure that Rails is so good at. First off, we need to know that, with Turbo, you can load a page with a…
Read MoreValidating Views with Capybara Queries
When you write a system test (or, as we prefer, a system spec) with Ruby on Rails, you’re exercising the whole stack from the point of view of the user. So, naturally, you have to do things like make sure that certain elements are on the page and work as you expect when you click…
Read More