Easy REST query validations in Rails