Skip to content

bjjb/rails_form_builders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

JJ's Ruby on Rails Form Builders

Some convenient Ruby on Rails Rails form builders.

To use them (for example, the LabeledFormBuilder), you first need to download the labeled_form_builder.rb script, and plonk it into the Rails application's lib/ directory. (You can put it in another directory, such as app/forms - but you will have to add that directory to the load paths in the environment).

Then you simply create a form in your ERB template with


<% form_for @model, :builder => LabeledFormBuilder do |f| %>
  <%= f.text_field :name %>
  <%= f.text_area :description %>
<% end %>

About

Some convenient Ruby on Rails form builders

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages