This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...

...upgrading Rails, have a look at Rails LTS. How many update steps? Besides the Rails upgrade itself, you might also want to upgrade your other gems and upgrade your Ruby...

...I prefer to simply upgrade all gems together with Rails. Workflow for each major Rails upgrade (A) Take note of patches and quirks for your specific version upgrade: Upgrade Rails...

Disclaimer This card is a collection of guides and things to have in mind when upgrading to a specific version...

Webpacker is Rails' way of integrating Webpack, and version 4 has been released just a few days ago, allowing us...

...be a fix for that eventually. Update cucumber-rails to >= 1.6.0: bundle update cucumber-rails Upgrade cucumber: bundle update cucumber Make sure you have a recent version of geordi (it...

Run bundle update cucumber capybara cucumber-rails to update to the newest versions. Backup your features/support/path.rb to be able to...

See our new comprehensive guide for upgrading every Rails 2 version ever.

See our new comprehensive guide to upgrading every Rails 2 version ever.

After an upgrade to rails 7 I noticed that async reindexing jobs of Searchkick were failing for Model.reindex(mode: :async...

blog.bigbinary.com

This error is raised because your old database does not have a configured environment yet, which Rails 5 enforces.

Maintaining larger projects makes it more difficult to balance refactoring and upgrade tasks according to its actual value. Consider to...

makandra dev

When you need to create a locale for a language variant (like Austrian for German), you probably don't want...

tl;dr: Upgrade the gem to at least 4.0.1 When you use rspec_rails in a version < 4 with Rails...

Note that you cannot currently use Ruby 1.9.2 with Rails 2 applications that use RSpec, so don't upgrade if...

Rails slightly changed the fragment cache implementation from Rails 7.0 to Rails 7.1. Unfortunately, this is incompatible with how Haml...

Rails' url_for is useful for generating routes from a Hash, but can lead to an open redirect vulnerability.

makandra dev

...alotting time. This is a refactoring similar to removing resource_controller (but not a Rails upgrade). Grep for $. This will show you all the affected lines of code. Refactor functions...

bundle outdated [--filter-major|--filter-minor|--filter-patch] Example output for bundle outdated --filter-major Other examples

You will need to upgrade to RSpec >= 2 and rspec-rails >= 2 for Rails 3. Here are some hints to...

We are using Spring in our tests for sequential test execution but not for parallel test execution. And Rails requires...

makandra dev

has_defaults is now a gem, no longer a plugin. The plugin version no longer exists. Note that plugins are...

blog.remarkablelabs.com

With the impending release of Ruby on Rails 4, it looks like a lot of developers will be updating their...

makandra dev

Ruby 1.9.2 is very slow when loading files, especially starting Rails servers or running specs takes forever.

tl;dr: Always have your attachment path start with :rails_root/storage/#{Rails.env}#{ENV['RAILS_TEST_NUMBER']}/. The directory where you...