rails-3.2.0  ruby-1.93 validation using device.