Skip to content

Instantly share code, notes, and snippets.

@mgreenly
Created December 28, 2011 05:10
Show Gist options
  • Select an option

  • Save mgreenly/1526419 to your computer and use it in GitHub Desktop.

Select an option

Save mgreenly/1526419 to your computer and use it in GitHub Desktop.
More on Twitter Bootsrap error handling in rails #2
<%= form_for(@item, :builder => BootStrapFormBuilder) do |f| %>
<fieldset>
<legend><%= content_for :page_heading %></legend>
<%= f.text_field :pn %>
<%= f.text_field :desc %>
<%= f.text_area :memo, :rows => 3 %>
<%= f.select :vendor_id, Company.all(:order => [:name]).collect {|company| [company.name, company.id]}, {:include_blank => true}, {:class => 'span4'} %>
<div class="actions">
<%= f.submit %>
<%= f.cancel %>
</div>
</fieldset>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment