Ernesto Tagwerker

Joined

20 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Updating Rails Applications across Rails versions?

The migration to strong_params is definitely a big part. It's not complicated but it's quite tedious. A few years ago we wrote and published a gem that should take you 90% of the way there: https://github.com/fastruby/rails_upgrader

In case anyone finds this interesting, here is the process we usually follow at my company: https://www.fastruby.io/blog/rails/upgrades/our-rails-upgrade-process.html

Here is the TL;DR version:

  • Find all deprecation warnings
  • Fix all deprecation warnings
  • Set up dual booting (this can help: https://github.com/fastruby/next_rails)
  • Get bundle install to work
  • Get your test suite to work
  • Get the application to work in production environment
  • Smoke test thoroughly
  • Deploy
  • Monitor exceptions in your favorite error tracker

I know this was asked ages ago, but I figured this might be useful if anybody finds this question in their searches. :)

Posted in Having some Issues regarding Rails 5.2 upgrade

I found an issue like this today and it turned out that I had misspelled something in my configuration. I wrote action_storage when it should have been active_storage 😊

I know it has been a while, but in case it helps anyone else...

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.