No commit activity in last 3 years
No release in over 3 years
Easily add Judge client side validation to your SimpleForm forms.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0.0
~> 1.6
>= 0
~> 3.5
~> 1.3.11

Runtime

>= 2.0
 Project Readme

judge-simple_form

Build status

This is an adapter gem which allows you to use Judge from within your Simple Form forms.

The current version supports Simple Form >= 3. For Simple Form 2 support use 'judge-simple_form', ~> '0.4'.

Usage

Do this in your Gemfile:

gem 'judge-simple_form'

Remember to setup Judge in your SimpleForm initializer. Put b.use :judge above b.use :input or b.use :input_label:

config.wrappers do |b|
  b.use :judge
end

Then add :validate => true to the input options in your views. That's all.

<%= simple_form_for(@user) do |f| %>
  <%= f.input :name, :validate => true %>
<% end %>

Judge

Judge is a client-side validation gem for Rails.

http://blog.joecorcoran.co.uk