Question: Ruby – 2.7.3 Rails – 6.1.3.2 DEPRECATION WARNING: Calling << to an ActiveModel::Errors message array in order to add an error is deprecated. Please callActiveModel::Errors#add instead. (called from validate at /var/home/application_name/app/models/contacts.rb:4) Please give some suggestion. Answer: I suspect it ...
Question: I have this regex: And when I use it on some, but not all, texts e.g. this one: like so: text.match(regex), then ruby just runs in what seems like an infinite loop – but why? And is there anyway ...