Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposed :key (in addition to :message) #30

Closed
wants to merge 2 commits into from
Closed

Exposed :key (in addition to :message) #30

wants to merge 2 commits into from

Commits on Jan 14, 2013

  1. Exposed :key (in addition to :message)

    I have a use case where I could do with :key exposed.
    
    If I echo out my errors, on some occasions I output the errors in a single block then treat them using JS (usually moving them to an element on the page by the ID stored in a data attribute).
    
    If I want to print <li data-key=":key">:message</li>, I cannot currently access the :key part (where :key is the ID of the associated field).
    
    Being able to do this (as adjusted) allows a user to identify exactly what field an individual message was associated with e.g. when using ->all(), and is a simple exposure of data already held.
    Andy Higgs committed Jan 14, 2013
    Configuration menu
    Copy the full SHA
    e01ac2d View commit details
    Browse the repository at this point in the history
  2. Coding standards update to original patch

    Updates following comments by franzliedke
    Andy Higgs committed Jan 14, 2013
    Configuration menu
    Copy the full SHA
    6afdd76 View commit details
    Browse the repository at this point in the history