Remote Ruby #20: Trivia Questions and Answers

On episode 20 of the Remote Ruby podcast, Chris and I play a game of trivia. These questions are composed of information from Wikipedia and beneggett/ruby-trivia. I have no doubts that some of this information could be wrong. I was a late bloomer to Ruby. 😎 I hope you enjoy(ed) the episode. According to Matz, […]

Eager Loading/Querying Against ActiveStorage Attachments

ActiveStorage, the new kid on the block. It’s exciting for Ruby on Rails developers to have a built-in solution for file uploads/attachments. Let’s talk about interacting with the table ActiveStorage gives us. There are times that we’ll want to reach for eager loading and even query against our attachments. Without much effort, it’s easy to […]

Adding Bootstrap 4 Errors to Rails Fields with Errors

The other day I was working on a new Rails application. Though I’m currently obsessed with Tailwind CSS, this project was a better fit for Bootstrap. I needed some predefined styling, quick. Unfortunately, fields with errors got in my way. The app, like most web applications, required forms. Using Ruby on Rails’ (ActiveRecord) model validations, […]

Embracing Modern JavaScript (with Ruby on Rails)

When I learned jQuery, I was on top of the world. All the fantastic things like animations and manipulating the DOM were at my fingertips. The late 00’s were a tremendous time of learning frontend development for me. Then, I no longer cared about frontend development. In 2012 I started learning full-stack web development. I was […]

Use Capybara’s #all to Select From Multiple Elements

Whether you’re writing feature specs using MiniTest, RSpec or Cucumber, you’re probably using Capybara to select elements. But, what happens when you’re trying to query a single selector and yet, there are multiples? The Problem Recently this question/example appeared on Reddit. “How can I use Capybara’s within block on a page with multiple instances of […]