there is something like:
validates_value_of :verified,:with=>1
to test a boolean field on a model?
If you want it to always be true, use validates_acceptance_of . If you want this to be either true or false, use validates_inclusion_of .
validates_acceptance_of :verified validates_inclusion_of :verified, :in => [ true, false ]
See validates_inclusion_of :
validates_inclusion_of :verified, :in => [1]
in your case
Source: https://habr.com/ru/post/1779477/More articles:Filling a QTextDocument from a .odt File - c ++Launch a web browser on BlackBerry - browserfancebox auto-resize with restrictions - jqueryHow to create shared / reusable code with Scrum? - scrumPackage Identifier Meaning - iphoneT-SQL 2005: passing null values ββthrough an XML data type - xmlSingle inheritance or polymorphic? - database-schemaHow to test a Sinatra application using a session - sessionhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1779481/adding-new-elements-to-a-webframes-dom-from-cocoaobjective-c&usg=ALkJrhg6e1gd6X6YhaL7BOGr8dNWycjeEwjQuery to select the last cell in a column when using rowspan - javascriptAll Articles