title: Validate that a value is in a certain range, e.g. 1 <= val <=2
body: <p>I want to validate a number <code>:value</code> to be within 1 or 2</p>
  
  <pre><code>validates :value, :format =&gt; { :with =&gt; /1|2/, :message =&gt; "Select number.." }
  </code></pre>
  
  <p>However, the above code is failing the validation when <code>value == 1</code></p>
  
  <p>Please ensure that your solution allows me to add a message for the validation.</p>