Skip to content

denisjacquemin/form-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Custom form helpers plugin for rails

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages