No description or website provided.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.document
.gitignore
Gemfile
LICENSE.txt
README.rdoc
Rakefile
acts_as_sortable_form_errors.gemspec

README.rdoc

Acts As Sortable Form Errors

Installstion

gem 'acts_as_sortable_form_errors', :git => 'git://github.com/kulbida/acts_as_sortable_form_errors.git'

Dependencies

This gem depends on dynamic_form gem. Please make sure you have installed dynamic_form gem first. github.com/rails/dynamic_form

How to use it

In a view

= form_for(@post) do |f|
  f.sortable_error_messages(:fields => [:title, :author, :desc])

  ...

It might be a good idea to put fields array into a separate module or a class.

If you using some nested fields you can set the field name as :'post.user_email'

Copyright

Copyright © 2012 Bogdan Kulbida. See LICENSE.txt for further details.