RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

ClassyFieldErrors: Rails plugin providing clean HTML/CSS handling of erroneous form fields

The developers at XING just launched a tiny Rails plugin to replace the Rails default way of using a div to highlight input fields with errors by just using a css class: http://github.com/xing/classy_field_errors. A related blog post explains the problem and solution in more detail.

Comments

hmm, i think i would use this in some of my projects too as my html structure often breaks when errors are thrown.

formtastic looks to have a decent way of handling errors though but it’s possible that a combination of both these plugins will be the best solution thanks

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in