Skip to content

jjburka/templated_form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TemplatedForm
=============

Plugin based on various form examples I have ran across. 
I do not claim to have the copyright or authorship for that code

Example
=======

When installed creates the following helper methods: 
  templated_form_for, templated_fields_for, templated_form_remote_for, 
  templated_remote_form_for
  
The fields inside the above blocks will be rendered using the partials found in
the views/forms directory

_field.html.erb

Overrides the label/field pair in normal conditions

_field_with_errors.html.erb

Overrides under error condition

Example Usage

<% templated_form_for @foo , do |f|%>
  <%= f.text_field :description , :label=>"Enter a short description"%>
  <%= f.submit 'Add Image'%>
<% end %>






Copyright (c) 2008 James Burka released under the MIT license

About

Simple templated form plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published