This is just a small tweak that will help you in upgrading rubygems successfully.
gem install rubygems-update -v 3.5.23 # installing gem
update_rubygems # updating rubygems from the gem
gem update --system # updating system
This is just a small tweak that will help you in upgrading rubygems successfully.
gem install rubygems-update -v 3.5.23 # installing gem
update_rubygems # updating rubygems from the gem
gem update --system # updating system
As you might now, Rails 7 allows us to use explain with parameters.
From now on, we can use it for example with analyze: true flag, which gives us much more information about the query.
In Rails this option is not available, but we can use some tricks to show the result simply.
Read moreAll modern frameworks offer protection against CSRF attacks, so these attacks are not as common anymore.
However, this does not mean we don't need to understand what they are and how to protect ourselves from them.
In this article, I will explain what a Rails engineer needs to know about CSRF.
Read moreLet's say you have a Rails app packed inside a docker container. You also have a pg server installed directly on your virtual machine (well, just to save your money). This can be a problem because on production, you should allow only specific IPs to have a connection to your database.
How can you do it then? This is a tutorial.
Read moreIf you are using Amazon Linux 2 and want to install SSL Certificate for your domains, certbot is a right call.
This is how you can do it, and also additional info about how you can renew existing certificate
Read moreSimple code to run one spec multiple times:
for i in `seq 10`; do rspec spec; done