Gnarly Learnings from July 2022

We love reading, watching, and listening in order to constantly update our skills and learn new perspectives. Here are some of the exciting pieces we learned from this month. The most underrated Rails helper: dom_id Despite being around for over a decade, a number of us at The Gnar have never interacted with the dom_id…

Read More

Make Yourself Accessible: Legacy Rails Applications

This is the third in a three-part series on “what accessibility actually looks like when you’re implementing it in a Rails app.” Part One covered some of the moral, ethical and professional rationale for making a site that adequately serves as many people as possible. Part Two covered implementing accessibility checks in a brand-new application,…

Read More

Gnarly Learnings From June 2022

We love reading, watching, and listening to constantly update our skills and learn new perspectives. Here are some of the exciting pieces we learned from this month. Goodbye, useEffect In this talk, David Khorshid discusses the awkward undesirable aspects of using useEffect to handle side effects. Specifically, useEffect’s proclivity for entering infinite loops and React…

Read More

Make Yourself Accessible: New Rails Apps

In Part One of this series, I talked through some of the ethical and moral rationales for making a website accessible to as many people as possible. It’s good for your users, and it’s good for your code, so it’s a good idea. But I didn’t actually lay out the process of adding accessibility checks…

Read More

Managing Shopify App Extensions Across Environments

Recently, Shopify started requiring that any apps integrating with a Theme use Theme App Extensions. There is plenty of documentation related to getting started with Theme App Extensions, such as Shopify’s documentation, but there is very little information available regarding managing these extensions across dev, staging, and production environments. The challenge of managing extensions across…

Read More

Hotwired Modals

Car in a claw machine

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 More

Validating 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

February Gnarly Learnings #1: An Introduction to Propshaft

What an exciting couple of months it has been for the Rails community! Rails 7 was released in December of 2021 and this month we are welcoming Propshaft. David Heinemeier Hansson (DHH), the creator of Rails, released a post on Feb. 11 introducing the community to the new and improved asset pipeline for Rails. While…

Read More