Bailitheoir is a JavaScript that you can insert into your pages to ensure that the browser will implement form input validation.
JJ Buckley
gem "bailitheoir", "~> 0.0.1"