Problem You wish to validate forms using a server-side REST API provided by Rails. Solution Rails already provides model validation support out of the box for us. Let us start with the Contact ActiveRecord model. class Contact < ActiveRecord::Base attr_accessible :age, :firstname, :lastname validates :age, :numericality => { :only_integer => true, :less_than_or_equal_to => 50 } end It defines a va
{{#tags}}- {{label}}
{{/tags}}