title: Forcing users to type in only numbers in a field (RoR)
body: <p>There is similar question like this for ASP.net, but I wanted to know if there is a 'relatively' easy way to do this on RoR. </p>
  
  <p>I have a field for "Price" where I want the user to only type in numbers. This means that when the user tries to type in anything else, my web app shouldn't let them (nothing should happen). </p>
  
  <p>If this isn't possible, I guess I can just validate my data after the user has submitted the "Submit" button and then flash a message that says "'Price' must be a number."</p>
  
  <p>Thank you for your time, </p>
  
  <p>JHS</p>