Upgrade Ruby and Rails
Mar 24, 26 by Juan Lebrijo about
We have to keep our software updated for security and compatibility reasons. Our Rails systems are managed with RVM, so we can easilly ubgrade ruby. Upgrade Rails is easier because we are using bundler with Gemfile to manage our dependecies.
In local DEV environment should install new ruby and update bundle:
bundle update
rvm install ruby-4.0.1
echo ruby-4.0.1 > .ruby-version
rvm --default use ruby-4.0.1
In the server we should install new version and make it default:
rvm install ruby-4.0.1
rvm --default use ruby-4.0.1
We are using Capistrano and puma for deployment. From local, reinstall puma service: 
cap production deploy
cap production puma:install
Updating Chromedriver when system chrome is updated
Dec 05, 23 by Juan Lebrijo about chrome, capybara, ruby, Ubuntu, blog
I use Capybara for testing, with chrome extension. From time to time Ubuntu asks to update chrome to a newest version. This breaks compatibilty with chromedriver version for testing purposes. You experienced an error like this:
Selection_630.png 23.3 KB
In this link you have all webdriver versions matching with your actual browser version. I downloaded and installed to solve the problem. Here the commands: 
wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/linux64/chromedriver-linux64.zip
unzip chromedriver-linux64.zip
sudo mv chromedriver-linux64/chromedriver /usr/local/bin/
sudo chown root:root /usr/local/bin/chromedriver
sudo chmod +x /usr/local/bin/chromedriver
rm -r chromedriver*

Hope it workd for you. Happy coding!!
Initializing a Ruby Hash
Dec 02, 23 by Juan Lebrijo about blog
Researching in the Hash ruby class, I needed to initialize values to 0. It is really easy, passing default value to construnctor:
store = Hash.new(0)
store[:candles] +=3
Then we can accumulate candles from the creation of the key without the "undefined '+' for nil:NilClass" error.