Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 681 Bytes

README.rdoc

File metadata and controls

24 lines (16 loc) · 681 Bytes

Custom Form Helpers

“Custom Form Helpers” helps me write clean views by moving repetitive tags structure in a plugin.

The generated html looks like that:

<div class="field">
    <div class="info">
        <label for="field_name">Field Label</label>
    </div>
    <div class="input">
        <input type="text" name="field_name" id="field_name"/>
    </div>
</div>

Example of use

<%= f.custom_text_field :title, :label => 'Title' %>

Credits

Author Denis Jacquemin thanks to David Demaree for inspiration.

Copyright © 2009 Denis Jacquemin, released under the MIT license