Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
SimpleForm twitter bootstrap ERB
<!-- Simple form EXAMPLE using twitter bootstrap
Referenced at
With related gists and
rails generate scaffold report title:string description:text email:string
<%= simple_form_for(@report, :wrapper => :inline, :html => { :class => 'form-stacked' }) do |f| %>
<%= f.error_notification %>
<%= f.input :title %>
<%= f.input :description, as: :text, placeholder: "What would you like to report?", label: false, input_html: {rows: 3}%>
<%= f.input :email %><a data-content="We need your email in case we have follow up questions. We respect your privacy and will not share the email address with others." rel="popover" href="#" data-original-title="Email privacy">[?]</a>
<%= f.button :submit, :class =>'btn primary' %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.