public
Description: All my Rails plugins bundled up.
Homepage: http://www.zachinglis.com
Clone URL: git://github.com/zachinglis/rails-plugins.git
rails-plugins / clickable_error_messages
name age message
..
directory .svn/ Loading commit data...
file MIT-LICENSE
file README
file Rakefile
file init.rb
directory lib/
clickable_error_messages/README
Clickable Error Messages
======================

Have a long form, or at least one that scrolls past the main page. Want to give your users more interactivity on the 
forms?

This plugin makes the attribute name a clickable link to the relative form field when using error_messages_for.

This is unobtrusive, no extra markup is required. If you remove it, your application will work as normal.

NOTE: I am going to work on making this completely unobtrusive and so that it does not mess with .to_xml etc. This will 
require more 
      hacking at a later date though.


Example
=======

In your view:
  <%= error_messages_for :user %>
  
Example goes here.
    <div class="errorExplanation" id="errorExplanation">
      <h2>2 errors prohibited this user from being saved</h2>
      <p>There were problems with the following fields:</p>
      
      <ul>
        <li><a href="#user_password">Password</a> can't be blank</li>
        <li><a href="#user_email">Email</a> can't be blank</li>
      </ul>
    </div>



Credits
=======

  Zach Inglis - www.zachinglis.com
  Chris Roos  - blog.seagul.co.uk

Copyright (c) 2007 Zach Inglis [www.lt3media.com], released under the MIT license