#ruby
Read more stories on Hashnode
Articles with this tag
Environment MacOS Sonoma 14.3 Original Ruby version: 2.7.8 Ruby Version Manager: RVM 1.29.12 Goal Upgrade Ruby from 2.7.8 to 3.0.6. Issues...
It is common to see require 'something' in a Rails application. But what exactly does require do? What is require used for in Ruby? require is used to...
Sometimes we will use klass_name.all to get records from the database. That’ll be ok, if we only have 100 records in the database. However, using...
Note: The following was tested with Ruby 2.6.6 Keyword: Heredoc What is heredoc? Heredoc is used for a form of multiline strings and preserves the...
Recently, I had a job to fix the slow code. Before diving into fixing the slow code, I used Scout APM to identify the performance bottlenecks, which...
What's nil? nil is an instance of NilClass. It's a special Ruby object used to represent the absence of any value. And it also behaves like false when...