Ruby Safe navigation operator in Ruby Ruby 2.3 has introduced safe navigation operator. Safe navigation operator returns nil if a method is called on a nil object. Before this, if a method is called on a nil object, it
Rails Use find_each instead of all.each in Rails In Rails, sometimes we need to iterate over all the records from a model. To achieve this people prefer to use all.each on a model. This can lead to usage of memory if
Ruby Ruby do not use keys method on a hash in loop Today, I was looking at the internal working of a gem. While working on the same, I came across the code where the network calls were being made and it had to check
Devops Google Cloud HTTPs load balancing with Letsencrypt certificate To setup HTTPs load balancer on Google Cloud Platform , we need to create an SSL certificate beforehand. Letsencrypt can be used to create an SSL certificate free of cost. The SSL certificate
Rails Devise model custom field updates with Rails Devise gem helps in creating User Authentication layer for the Ruby on Rails applications. The other day, I was taking a session on Hackhands to resolve a query from a Ruby on Rails
Rails Rails 5.2 introduces Active Storage for File Uploads DHH [Creator of Rails] has recently announced Active Storage as a built in support for file uploads. Active Storage is targeted to be released with Rails 5.2. The development has been started on