Softellar

Ruby on Rails Staff Augmentation

Ruby on Rails Staff Augmentation for Mature Apps

A Rails engineer knows where your models, controllers and jobs live before opening the code. One from our in-house team joins your codebase, your reviews and your releases, and learns where your app does things its own way. You lead the work.

Discuss your Rails application

We reply within 24 hours

Companies we have built software for

  • Multi Radiance Medical
  • Loma Lux Laboratories
  • WellVu
  • Commercial Capital Group
  • Grand Auto
  • HostMy
  • Land Base
  • Auto Tuning

By Convention, Until It Isn’t

Rails expects each part of an app in its place, so an engineer finds their way on day one. The work is where your app stopped following it.

A studio booking app, folder by folder
  1. app/models

    One model for each table

    A booking runs 11 callbacks

    01

    Models that do everything

    • Active Record

    Where it goes wrong

    Saving a booking fires eleven callbacks, and one of them sends an email, so a data fix in the console emails every member.

    What the engineer adds

    Side effects moved out of callbacks into one named object for each action, with tests around the model before it is split.

  2. app/controllers

    One controller for each resource

    Some queries skip the studio

    02

    Accounts and roles

    • Devise
    • Pundit

    Where it goes wrong

    One query written without the studio shows one studio another studio’s members.

    What the engineer adds

    Every query reached through the current studio, a policy for each action, and a test that signs in as one studio and asks for another’s record.

  3. app/views

    One template for each action

    Live updates render for everyone

    03

    Hotwire screens

    • Turbo
    • Stimulus
    • Action Cable

    Where it goes wrong

    A live update is rendered once, outside any request, so a partial that reads the signed-in member breaks or shows the wrong buttons.

    What the engineer adds

    Broadcast partials with nothing personal in them, and the personal parts loaded for each viewer.

  4. app/controllers/api

    The same resources, as JSON

    Columns sent as they are

    04

    APIs for other front ends

    • React
    • Vue
    • GraphQL

    Where it goes wrong

    The API returns each model as it is, so renaming a column breaks the mobile app.

    What the engineer adds

    Every field named in a serializer or a GraphQL type, versions on the endpoints, and a limit on how deep a query can go.

  5. app/jobs

    Work that runs later

    Jobs queued before the commit

    05

    Background jobs

    • Active Job
    • Sidekiq
    • Solid Queue
    • Resque
    • Delayed Job
    • Redis

    Where it goes wrong

    A job is queued inside a transaction and starts before the commit, so it cannot find its record.

    What the engineer adds

    Jobs queued after the commit, record ids passed instead of whole objects, and a limit on retries.

  6. spec

    A spec beside each class

    47 minutes, fails at random

    06

    The test suite

    • RSpec
    • Capybara
    • FactoryBot
    • Minitest

    Where it goes wrong

    Each factory builds every record it is linked to, so the suite takes most of an hour and browser tests fail at random.

    What the engineer adds

    Factories that build only what a test needs, the suite split across machines in GitHub Actions, and each flaky test fixed at its cause.

  7. Gemfile

    Every gem, pinned in Gemfile.lock

    Rails 6.1, five versions behindSee how it moves up

Existing Products We Took Further

Products that were already running when our engineers joined, audited, restructured and moved forward.

United States

React communication platform refactored in TypeScript

Outcomes

  • Faster development, less time fixing bugs
  • Rendering lag significantly reduced
  • Higher test coverage with user-centric unit tests
  • React
  • TypeScript
  • Redux Toolkit
  • Storybook

Upgraded Between Features

An older Rails app is often several versions behind, and few teams can pause features for an upgrade. So the upgrade runs beside them.

Two Rails versions on every commit

From Rails 6.1 to 7.0

Tests failing on Rails 7.0, week by week

  1. 212
  2. 140
  3. 88
  4. 41
  5. 12
  6. On 7.00

From Rails 7.0 to 7.1

Tests failing on Rails 7.1, week by week

  1. 64
  2. 30
  3. 9
  4. On 7.10

After each switch, the new framework defaults are turned on one at a time, then the next version starts.

148 gems in Gemfile.lock
  • 101 up to date
  • 41 behind
  • 6 blocking Rails 7.0

What the lockfile tells the engineer

  • Six gems block Rails 7.0

    Two are no longer maintained and are replaced, and four need a newer major version first.

  • Forty-one are behind

    Updated a few at a time in small pull requests, with the suite passing on both Rails versions.

  • Ruby moves too

    Rails 7.2 needs Ruby 3.1 or newer, so Ruby is upgraded between two Rails steps.

So the upgrade never stops the release

Starting a new web application? For a new product, our web development team builds it from the start as one project.

See web development

Clients on How We Work

Automation built into an existing system, a platform shaped around the business and a migration with no downtime.

Rails Engineers for Code With History

Ruby on Rails staff augmentation adds a Rails engineer to your team, and you lead the work.

The engineer reads where your app follows Rails and where it stopped, moves it up one version at a time, and adds tests to the code being changed while features keep shipping.

The goal

An app on a supported Rails version, with a suite the team trusts before each release.

What the engineer works in

  1. Models and data

    • Active Record
    • PostgreSQL
    • MySQL
    • Redis
    • Elasticsearch
  2. Access

    • Devise
    • Pundit
  3. Screens and APIs

    • Action Cable
    • React
    • Vue
    • GraphQL
  4. Jobs

    • Active Job
    • Sidekiq
    • Solid Queue
    • Resque
    • Delayed Job
  5. Checks

    • RSpec
    • Capybara
    • FactoryBot
    • Minitest
    • RuboCop
    • Brakeman
  6. Running it

    • Docker
    • Kamal
    • Heroku
    • AWS
    • GitHub Actions
    • Sentry
    • New Relic
From the models and the data under them, through who may see what and the screens and APIs that show it, to the work that runs later, the checks around it and the servers it runs on.

Several Rails Versions Behind?

Tell us the Rails and Ruby versions you run, and an engineer will tell you who we have.

We reply within 24 hours and can sign an NDA first.

Have files or a long brief? Use the full form

Before the First Spec Runs

Four questions we ask before proposing a Rails engineer, then the five steps to their first two weeks.

What we ask

  1. 01

    Which Rails and Ruby versions it runs, and where it is hosted

    For exampleRails 6.1 on Ruby 2.7, on Heroku, with a plan to move to AWS

    So the engineer knows how many upgrade steps are ahead, and whether Ruby has to move between them.

  2. 02

    How old the app is, and who still knows it

    For exampleStarted in 2016, with one of the first developers still on the team

    So the first week is spent with the person who knows why the app stopped following Rails.

  3. 03

    How long the suite takes, and how often it fails without cause

    For exampleRSpec takes 40 minutes in CI, and about one run in five is restarted

    So the engineer knows whether the suite can be trusted to check an upgrade.

  4. 04

    Which front ends it serves

    For exampleRails views for the admin, and a JSON API for a React app and a mobile app

    So the engineer knows which responses other apps depend on before anything is renamed.

Then, in this order

  1. 01Brief

    You answer these questions, plus the role, the seniority and the start date.

  2. 02Shortlist

    We match the brief against our in-house engineers and send the profiles that fit.

  3. 03Interview

    You test them the way you would test your own hires, then pick who joins.

  4. 04Order

    A short order under the master services agreement names the engineer, the rate and the start date.

  5. 052-week trial

    The engineer joins your standups and opens a first pull request in week one.

Terms at a glance

Read the full agreement
Start
Often within 48 to 72 hours
Trial
The first 2 weeks, before any long-term commitment
Replacement
Within 48 hours, at no extra cost
Notice
One month to scale up or down, with no penalties
IP
Full ownership assigned to you under the MSA
Working hours
Standups and reviews from 2 to 6 PM CET, the US morning

US Office, European Engineering

Headquartered in Warsaw, Poland, with a client office in New York. A European engineering team that works in your hours, with a US point of contact.

Headquarters

Warsaw, Poland

Engineering and delivery, and the main contact point for clients in Europe.

Client office

New York, United States

Kickoffs, contracts and account management for North American clients.

Shared hours with North America

Clients in Europe share the full working day with the team.

8 AM to 12 PM New York time, 2 PM to 6 PM in Warsaw.

Web and Staffing Recognition

Awards for our web development and staff augmentation work, and for the in-house team our Rails engineers belong to.

Related reading

Reading for Rails Team Leads

Guides from our team on choosing Rails engineers, modernizing older applications and the tools for it.

All Insights

Frequently Asked Questions

Questions teams ask before a Rails engineer joins an application that has been running for years.

Have a different question? Talk to our team

How Old Is Your Rails App?

Tell us about the application, the versions it runs and what slows the team down.

We reply within 24 hours, and we can sign an NDA before you share details.

Talk to the people who will scope your project