stouset/twitter_bootstrap_form_for — Issue #11: Consider making a twitter_bootstrap_form version
Author: danpersa
Created: 2011-10-19 17:56:29+00:00
State: open

The current version of *twitter_bootstrap_form_for* works with objects.
Consider making a version of the method (maybe named *twitter_bootstrap_form*) that just generates the form.

As an example, I have the following form, and I'd like to use *twitter_bootstrap_form* for it

```ruby
<%= form_tag({:controller => :reminders, :action => :create}, {:remote => remote?, :class => "generic_form", :id => "new_reminder"}) do %>
<%= render 'shared/error_messages', :object => @reminder %>

<%= hidden_field :idea, :id %>

Remind me to

<%= @idea.content %>

<%= label_tag :reminder_reminder_date, "on" %>
<%= text_field :reminder, :reminder_date, :placeholder => "Reminder date" %>
<%= errors_for_field(@reminder, :reminder_date) %>

<%= label_tag :reminder_privacy_id, "as" %>
<%= collection_select(:reminder, :privacy_id, Privacy.all, :id, :name) %>

<% unless hide_buttons? %>

<%= submit_tag submit_button_name %>

<% end %>
<% end %>
```