All Articles

10 Strategies for Upgrading Low-Coverage Apps

Are you considering an upgrade for your Rails or Ruby application, but you’re concerned about low test coverage? Don’t worry! In this post, we’ll explore effective strategies to address the risks associated with low test coverage. By implementing these strategies, you’ll be able to upgrade your application with confidence. Let’s dive in!

Read more of 10 Strategies for Upgrading Low-Coverage Apps opens a new window

How to Run Multiple Rails Versions on Heroku

Imagine having the ability to deploy the next version of Rails in a dual booted application on your Heroku staging server or review app before deploying it to production. This capability can help you avoid bugs and downtime in your live environment. In this blog post, we will guide you on how to deploy a Rails upgrade to a staging environment, allowing you to thoroughly test it before it goes live.

Read more of How to Run Multiple Rails Versions on Heroku opens a new window

Navigating Asset Management Madness in Rails

There have been a lot of changes over the years in asset management opens a new window for Ruby on Rails applications. The main question, after all the madness, is… “What should I do if I need to upgrade my Rails application?”

In this article we will talk about the options we have for each version jump.

Read more of Navigating Asset Management Madness in Rails opens a new window

Safeguarding Against Deprecation Regressions

You are upgrading a Rails application. You finished fixing a deprecation warning and it’s not present anymore. You continue working on other tasks and one day you find out the deprecation is back in the codebase. New code was added using the deprecated behavior, but it was not detected and now it needs to be fixed again…

How can you prevent that from happening and, at the same time, let the team know?

Read more of Safeguarding Against Deprecation Regressions opens a new window

Fix Sneaky ArgumentErrors When Upgrading Ruby

Upgrading from Ruby 2 to Ruby 3 can be a challenging task, especially when your Rails application relies on ActiveJob with Sidekiq. In the process, you may encounter cryptic ArgumentError exceptions that make the upgrade seem daunting. By following along you’ll be well-equipped to avoid some of the hurdles that come your way.

Read more of Fix Sneaky ArgumentErrors When Upgrading Ruby opens a new window

The History of the Asset Pipeline

Over the years, Rails has been changing the default way to handle assets while also adding different alternative options at the same time.

At first there were static files, then Sprockets appeared, then we had a choice between Webpacker and Sprockets for a few years, now Webpacker is gone and importmaps are the default. But jsbundling-rails and cssbundling-rails are also official options.

Sound confusing? In this article we’ll try to explain the history of all these changes.

Read more of The History of the Asset Pipeline opens a new window

Fortify Rails: Defending Against Bad Actors

On Monday June 12th, 2023, FastRuby.io partnered with Expedited Security opens a new window to talk about how to secure your Ruby on Rails application.

In this free webinar Ernesto Tagwerker opens a new window (FastRuby.io) and Mike Buckbee opens a new window (Expedited Security) discussed topics of interest related to Rails security opens a new window (exploitable ActiveRecord code, vulnerable dependencies, botnets, DDoS, a breakdown of common threats, and more).

You’ll also get a sneak peak of Wafris opens a new window , an Open Source service to prevent attackers and dark traffic to your application and of our new Rails Security Audit opens a new window , a service to detect vulnerabilities and exploitable code in your app!

Read more of Fortify Rails: Defending Against Bad Actors opens a new window

Readonly Associations and Upgrading to Rails 4

After upgrading your application from Rails 3 to Rails 4, you might start seeing the following deprecation warning if you are using the readonly option in an association.

DEPRECATION WARNING: The following options in your Company.has_many :users declaration are deprecated: :readonly. Please use a scope block instead. ...

In this blog post, we’ll discuss in detail what the readonly option is and how to handle the deprecation warning.

Read more of Readonly Associations and Upgrading to Rails 4 opens a new window

RailsConf 2023: Our Rails Upgrade Workshop

As always, RailsConf was a great experience this year. For the fourth time, we gave the FastRuby.io Rails Upgrade Workshop. It was actually my 2nd time participating in running the workshop, and my co-worker, Fiona’s 1st time.

Each time we run the workshop, we like to bring in a new co-presenter, so different members of our team can have the opportunity to present at RailsConf.

Read more of RailsConf 2023: Our Rails Upgrade Workshop opens a new window

Introduction to Rails Engines

Rails Engines are an architectural pattern that can be used to modularize a Rails application. They are self-contained applications that can be mounted within a larger Rails application. In this post, we will dive into the world of Rails Engines and explore what they are, how to create them, how to use them, when to use them, and why they are important.

Read more of Introduction to Rails Engines opens a new window

Bonsai: Fixed-Cost Monthly Maintenance

Ever since we started offering productized Ruby and Rails upgrade services opens a new window and upgrade roadmaps opens a new window , we’ve been interested in helping as many people and companies as possible.

Unfortunately, in the past we’ve had to turn down companies who wanted to work with us but couldn’t secure the minimum monthly budget to work with our experts.

I’m pleased to announce that we’re now offering new opportunities for startups and small businesses to work alongside our team.

In this article, I will share a few new options to collaborate with our team of experts who specialize in technical debt opens a new window remediation.

Read more of Bonsai: Fixed-Cost Monthly Maintenance opens a new window

Power HRG Increases Server Speed by 40%

Power Home Remodeling (Power) opens a new window is the nation’s largest full-service exterior home remodeler and a top workplace.

Headquartered in Chester, Pennsylvania with offices in 18 territories across the United States, the award-winning company’s primary product line includes windows, siding, doors, roofing, solar roofing panels, and attic insulation.

In this article we will share how our Tune Report opens a new window helped Power speed up their application by reducing their average page load time from 5 to 3 seconds.

Read more of Power HRG Increases Server Speed by 40% opens a new window

Fixing Rails 6.1 Relation `merge` Deprecation

Recently, while working on a Rails 6.1 to 7.0 upgrade, we encountered the following deprecation warning regarding changes made to ActiveRecord::Relation’s merge method:

"Merging (#{node.to_sql}) and (#{ref.to_sql}) no longer maintains both conditions, and will be replaced by the latter in Rails 7.0. To migrate to Rails 7.0's behavior, use relation.merge(other, rewhere: true)."

In this article, we will talk about the expected behavior of merge, how it has changed and what to do in order to use the new behavior if you find yourself looking at this deprecation.

Read more of Fixing Rails 6.1 Relation `merge` Deprecation opens a new window

4 Essential Security Tools for Rails Apps

At FastRuby.io we love Ruby on Rails opens a new window because it is so powerful: You can quickly create an application that is feature complete, stable, and secure opens a new window

Unfortunately, maintaining a Rails application up to date and secure takes some effort.

In this blog post, we will cover a few Ruby gems and best practices that you can use to stay on top of your security, reliability, and stability needs.

Read more of 4 Essential Security Tools for Rails Apps opens a new window