I found some Ruby code that made use of:
require "active_support/core_ext/time"
require "active_support/core_ext/numeric"
On my Mac with macOS Monterey, I don't have rails or rvm
yet, and if I install rvm
, it requires Homebrew to install a new Ruby and it may complicate things further, so with the system Ruby (ruby 2.6.8p205
), how can active_support/core_ext/time
be installed so that it can be used?
I looked at this question and it doesn't solve the problem.
I recalled I can install rails:
gem install rails
However, is it true that I have to use sudo
to do it? (I try to minimize the use of sudo
to keep the system more secure).