Skip to content

Instantly share code, notes, and snippets.

@zirosas
Last active December 19, 2015 09:09
Show Gist options
  • Save zirosas/5930701 to your computer and use it in GitHub Desktop.
Save zirosas/5930701 to your computer and use it in GitHub Desktop.
Override the class name in the form_for helper. keep checkbox and label on same line.
Override the class name in the form_for helper.
<%= form_for("model", :url => model_action_path, :html => { :class => "form-horizontal" } ) do |f| %>
keep checkbox and label on same line.
:class => "checkbox inline" to label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment