Ruby Rails uses did_you_mean spell checker ruby gem for suggestions When coding in Ruby, we tend to make typo errors. This can take up time if not quickly identified. did_you_mean spellchecker gem helps detect such errors and also presents suggestions that can resolve
Ruby Ruby Chronic gem - parse datetime in natural language To parse natural language datetime string in Ruby, we can use gem Chronic. Chronic is a natural language date parser in Ruby. This comes very handy, if we want to parse natural language
Rails Rails Range cover? includes? methods support Range argument Rails CompareWithRange core extension adds support of Range as an argument to Range#===, Range#cover? and Range#includes? methods. Ruby already has support for these three methods, but ruby does not support Range value as
Ruby Ruby 2.6 adds Random.bytes method Ruby 2.6.0-preview2 has been released recently. Random.bytes method was introduced with the release. This is equivalent to Random::DEFAULT.bytes. The feature returns random bytes based on the length argument passed to it.
Rails Rails skip_before_action callback ignores conditional Before action callback in Rails has support to add conditions like if and unless. The callback is executed only if the conditions evaluate to true. But, skip_before_action callback does not support conditionals. In
Rails Rails parse date time string in UTC zone Sometimes we need to parse a date string in UTC timezone in Ruby. Time.parse considers system time zone whereas we might want to parse time in UTC or some other custom timzone. This