Skip to content

kulbida/acts_as_sortable_form_errors

Repository files navigation

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 © 2012 Bogdan Kulbida. See LICENSE.txt for further details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages