Tutorials

Let's Build with Ruby on Rails: Extending Devise Series – Confirmation Emails
Continuing my Let’s Build with Ruby on Rails – Extending Devise series I take a look at adding confirmation emails to a given Ruby on Rails application.Download the source codeDownload the Kickoff Tailwind Template I reference in this tutorial (op...







A repeatable, step-by-step process for writing Rails integration tests with Capybara
Many Rails developers who are new to writing tests struggle with the question of what to write tests for and how.I’m about to share with you a repeatable formula that you can use to write an integration test for almost any Rails feature. It’s noth...

A Rails middleware to change the log level at runtime
Have you ever found the Rails logs too verbose in development?When working on a Rails application, you don’t always need that amount of detail in your logs. From time to time, a less verbose log is more than enough, especially after a long day cod...

The difference between RSpec, Capybara and Cucumber
RSpecRSpec is a testing framework. It’s what allows you to write and run your tests.An analogous tool would be MiniTest. In my experience, most commercial Rails projects use RSpec and most open-source Ruby projects use MiniTest. At any Rails job y...