gem ‘acts_as_sortable_form_errors’, :git => ‘git://github.com/kulbida/acts_as_sortable_form_errors.git’
This gem depends on dynamic_form gem. Please make sure you have installed dynamic_form gem first. github.com/rails/dynamic_form
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 © 2012 Bogdan Kulbida. See LICENSE.txt for further details.