Tag: difference between ruby and ruby on rails

Helpers in Ruby on Rails

numericality This helper validates that your attributes only have numeric values. By default, this will match the possible sign of the first character, followed by an integer or floating point number. To specify that only integer values ​​are allowed, set :only_integer to true. If you set :only_integer to true then the regular expression will be […]