≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Feature request #1570

Feature request #1570: Add JavaScript-based "decoration" (tool tips) to forms to show validation errors

Kind feature request
Product wincent.dev
When Created 2010-06-14T04:36:53Z, updated 2011-02-01T12:35:28Z
Status open
Reporter Greg Hurrell
Tags no tags

Description

The error_messages_for method and friends have been extracted into a plug-in in Rails 3:

  • http://github.com/rails/dynamic_form

I've already added in a simple partial to display the errors above the form, but still need to provide "decoration" for form fields with validation errors.

Comments

  1. Greg Hurrell 2010-06-14T06:12:17Z

    Ok, on inspection, I see that in Rails 2 a CSS class, fieldWithErrors, is applied to fields with validation errors.

    In Rails 3, the class has been changed to field_with_errors.

    So all I need to do is edit my CSS to get the old behavior back.

    I think I'm going to add some JS magic as well to display the errors in a tool tip or similar right on the field.

  2. Greg Hurrell 2011-02-01T12:35:23Z

    Summary changed:

    • From: Rails 3: add back "decoration" to forms to show validation errors
    • To: Add JavaScript-based "decoration" (tool tips) to forms to show validation errors
  3. Greg Hurrell 2011-02-01T12:35:28Z

    Kind changed:

    • From: bug
    • To: feature request
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets