Guides

How to hire a Ruby on Rails developer: the skills to test and the questions to ask

Guides · · Published 2026-12-02

Close-up of a laptop screen showing lines of colour-highlighted code in a text editor
Reading someone else's code is most of the job: a short code review tells you more than a quiz. Photo: Marc Mueller, CC0.

Hiring for Rails is not like hiring for a framework that launched last year. Most Rails jobs are about an application that already exists, often for a decade, with its own conventions, its own gems and its own upgrade debt. The best candidate is rarely the one who knows the newest feature; it is the one who can read an old codebase, keep it safe and move it forward without breaking it. This guide sets out what to test, the questions that reveal it, and the mistakes that cost teams months.

Start with the job, not the stack line

"Senior Rails developer, Ruby, PostgreSQL, Redis" describes nothing a candidate can judge. Before writing the posting, answer three questions in plain words:

As our look at the Rails job market shows, Rails developers are a professional, experienced niche. They read postings carefully, and a vague one filters out exactly the people you want.

The skills that matter, in order

1. Rails conventions and the reasons behind them

Rails rewards people who work with its defaults. The project's own Rails Doctrine puts "convention over configuration" at the centre. A good Rails developer knows where things go (models, concerns, jobs, mailers), uses generators and the built-in tools before reaching for a gem, and can explain when a convention should be broken. Ask to see that judgment, not a list of features.

2. Active Record and SQL

Almost every Rails performance problem ends up in the database. A candidate should recognise the N+1 query problem on sight and know the fixes the Active Record Query Interface guide describes (includes, preload, eager_load), read an EXPLAIN, add the right index, and write a migration that will not lock a large table in production. Someone who can only use Active Record and never looks at the SQL it generates will struggle on a mature app.

3. Testing

Whether the team uses Minitest, which ships with Rails, or RSpec matters less than how the candidate thinks about tests: what to test at the model level, what deserves a system test, how to keep a suite fast and how to deal with a flaky test rather than rerunning it. Our testing tools guide covers the libraries; the interview should cover the habits.

4. Security basics

Rails protects against a lot by default, which is precisely why developers sometimes switch the protection off without noticing. The official Securing Rails Applications guide is the reference: strong parameters, CSRF protection, SQL injection through string interpolation, unsafe redirects, secrets in credentials. A candidate does not need to recite it, but should know why params.permit! or where("name = '#{params[:name]}'") is a problem.

5. Upgrades and dependencies

Rails supports only recent release series with bug and security fixes, as its maintenance policy explains, so every long-lived application has to be upgraded regularly. Experience of at least one major upgrade, with deprecation warnings fixed and gems replaced, is one of the most valuable things on a Rails CV. So is the habit of checking a gem's maintenance before adding it, which our guide to evaluating a Rails gem describes.

6. Background jobs and the rest of production

Emails, imports, webhooks and reports run in the background. A candidate should understand Active Job, a backend such as Solid Queue or Sidekiq, idempotent jobs and retries, and what happens when a job runs twice. Logging, error tracking and reading a stack trace from production belong in the same family.

Interview questions, and what a good answer sounds like

These questions work in a conversation, with follow-ups. The point is not the vocabulary but whether the candidate reasons from experience.

  1. "A page that lists 50 orders with their customers takes three seconds. What do you check first?" A good answer goes to the logs or a profiler, spots repeated queries, mentions eager loading and indexes, and only then talks about caching.
  2. "You need to add a non-null column to a table with 20 million rows. How do you deploy it?" Look for a multi-step plan: add the column as nullable, backfill in batches, then add the constraint, so that no deploy locks the table.
  3. "When would you use a callback, and when would you avoid one?" A good answer separates data integrity (fine in a model) from side effects such as sending emails or calling APIs (better made explicit), and mentions how callbacks make tests and imports surprising.
  4. "How do you decide between adding a gem and writing the code yourself?" Look for criteria: maintenance, size, how much of it you would use, what Rails already provides, and the cost of removing it later.
  5. "Tell me about an upgrade you did. What broke?" Specific stories (a deprecated API, a gem with no compatible release, a change in default behaviour) are worth more than any certificate.
  6. "A background job sends the same email twice. Why might that happen?" Retries after a timeout, a job enqueued inside a transaction that later rolled back, or two workers: the candidate should talk about idempotency.
  7. "What would you look at in your first week on our codebase?" Good candidates mention the test suite and its run time, the Gemfile and outdated gems, the Rails and Ruby versions, error tracking, and the slowest pages.

A fair technical exercise

Long unpaid take-home projects drive away experienced people with jobs and families. Three formats work better:

Whatever you choose, tell candidates in advance what you will assess, and give the same exercise to everyone so that results can be compared.

Red flags, on both sides

Employee, contractor or agency?

A permanent hire makes sense when the application is core to the business and will live for years. A contractor or a small consultancy suits a bounded project: an upgrade, an audit, a migration. Whichever route you take, the same checks apply, and the code review exercise above works just as well for vetting a contractor as for a candidate. Ask for references from a client whose application has been in production for more than a year.

The short version

Hire for judgment on an existing codebase: databases, tests, security defaults and upgrades. Test it with a code review or a pairing session rather than trivia, ask about real incidents, and be honest about the state of your own application. The official Rails Guides are a good shared reference for both sides of the table.