All Articles

The Evolution of ActiveModel::Error in Rails

Rails progression emphasizes simplicity and productivity. Through versions, Rails integrated tools, enhanced performance, and adapted to industry standards, keeping a focus on developer happiness and efficiency. ActiveModel::Error is an example of that. On this blog post, we’ll dive into the evolution of this object.

Read more of The Evolution of ActiveModel::Error in Rails opens a new window

Dual-Boot Ruby

As we mentioned many times, at FastRuby.io we like to use the Dual-Boot technique opens a new window during upgrades to quickly test the same code with the current and the next version of what we are upgrading. We usually talk about dual-booting Rails versions but this can be used to upgrade Ruby itself too. We have to make some changes to adapt the technique, and we’ll explain the basic changes in this article.

Read more of Dual-Boot Ruby opens a new window

Rails Developer's Guide to PostgreSQL Indexes

In a previous article opens a new window , we listed down common culprits that led to a sub-optimal performance in Rails applications. One of the culprits was missing or incorrect indexes.

Therefore we thought it would be very useful to have a handy reference to the different kinds of indexes, when you should use them and maybe even when not to use them.

Read more of Rails Developer's Guide to PostgreSQL Indexes opens a new window

Dual-Boot Ruby on Rails Using Docker

Starting in Rails 7.1, Docker files are added by default opens a new window in new applications, but Docker opens a new window has been popular for Rails development for many years before that. At FastRuby.io, we use the Dual-Boot technique opens a new window when we work on upgrades, and using that approach when an application uses Docker requires some extra steps to keep a great development experience.

Read more of Dual-Boot Ruby on Rails Using Docker opens a new window

ReadyTech's Rails Upgrade Cuts Costs 5-10%

Based in Sydney, Australia, ReadyTech opens a new window combines technology with a people-centric approach to help organisations navigate complexity and deliver meaningful outcomes. With more than 500 employees globally, the publicly-traded company continues to grow rapidly and now serves 4,000+ customers across three vertical segments: Education & Work Pathways, Workforce Solutions, and Government & Justice.

Read more of ReadyTech's Rails Upgrade Cuts Costs 5-10% opens a new window

How To Delay A Rails Upgrade

Maintaining an up-to-date Ruby on Rails application is crucial for performance, security, and feature enhancements. However, finding the time for a full-scale upgrade can be challenging. In this blog post, we’ll explore practical steps you can take to delay a Rails upgrade when you don’t have the immediate bandwidth but want to set the stage for a seamless process in the future.

Read more of How To Delay A Rails Upgrade opens a new window

Common Culprits in Rails Performance Issues

When it comes to improving application performance and areas to focus on, I would recommend looking at the APM data, and then deciding which areas to prioritize.

However this article isn’t about where to focus efforts, but rather a compilation of techniques to improve your application’s performance, from tackling common problems like N+1 queries and database indexing to leveraging the jemalloc memory allocator. Let’s look at these performance-boosting strategies designed to fine-tune your application.

Read more of Common Culprits in Rails Performance Issues opens a new window

A Step-by-Step Guide to Upgrading Ruby

Every year, Ruby enthusiasts anticipate the December release of a new Ruby version. At the end of 2023, Ruby 3.3 was released and you can read this article opens a new window to learn more about the new features and improvements it brings. This makes it a good time to start considering if your application is due for an upgrade.

Upgrading your application can sound complicated and difficult, but it doesn’t have to be. Below, we will discuss how to identify when to upgrade your Ruby version and the steps necessary to complete a smooth and successful upgrade.

Read more of A Step-by-Step Guide to Upgrading Ruby opens a new window

RubyConf 2023 – A Ruby Renaissance

Late last year our team members headed to beautiful San Diego to join the incredible Ruby community at RubyConf 2023. Attending the conference is always a highlight, and we were excited to participate as a sponsor and engage with attendees, learn and share expertise, and have some fun.

The Ruby community is special. It has an incredibly inclusive and supportive culture that feels different than other languages. It was great to take some time to come together and enjoy the community’s hard work, network, and plan for the future.

Read more of RubyConf 2023 – A Ruby Renaissance opens a new window

Serving ActiveStorage Attachments via a CDN

Here at FastRuby.io we always try to have our own applications in such a state that they can always be pointed to as models in terms of performance and accessibility.

One of the tools we use to achieve that is our CDN. After all, considering we have clients everywhere from the US to New Zealand, we want anyone perusing our websites to have good loading times for the pages and, especially, the assets.

However, no matter how thorough, one always misses a spot or two.

Read more of Serving ActiveStorage Attachments via a CDN opens a new window

How to Use Brakeman for Rails Security

Security is a huge concern for web applications. To protect your Rails app from potential vulnerabilities and threats, it’s essential to perform regular security assessments opens a new window . Brakeman opens a new window , a widely used static analysis tool for Ruby on Rails, can help you identify security vulnerabilities proactively.

In this article, we’ll explore how to use Brakeman to check your Rails app for security vulnerabilities.

Read more of How to Use Brakeman for Rails Security opens a new window