Class: ClientValidationsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/client_validations_controller.rb

Instance Method Summary collapse

Instance Method Details

#uniquenessObject

Poll with /client_validations/uniqueness?model_class=User&column=username&value=theusername. Returns either ‘true’ or ‘false’.



4
5
6
7
# File 'app/controllers/client_validations_controller.rb', line 4

def uniqueness
  responder = ClientValidation.current_adapter.validation_responses[:uniqueness]
  render :text => responder.respond(params)
end