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
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.
Ruby Rails form_with - alternative to form_for and form_tag Rails 5.1 added form_with form helper method that provides capabilities of form_for and form_tag. Rails unified form_for and form_tag that provide similar interfaces to generate forms with form_with helper.
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
Ruby Array comparison in ruby I was working on a problem to check on a large array of integers to check whether it is a part of another array or not. Both the arrays have unique elements, but