Skip to content

Instantly share code, notes, and snippets.

@DanCoughlin
Created June 28, 2012 12:37
Show Gist options
  • Save DanCoughlin/3011110 to your computer and use it in GitHub Desktop.
Save DanCoughlin/3011110 to your computer and use it in GitHub Desktop.
Contact Form
<h1>Contact Form</h1>
<%= form_for(@contact_form, :html => {:class => 'form-horizontal well'}) do |f| %>
<%= f.label :name, 'Name', :class=>"control-label" %>
<div class="controls">
<%= f.text_field :name, :class=>"controls", :value=>"", :required => false %>
<%= f.submit :value => "Send", :class => "btn-primary btn-large" %>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment