Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Corrected code example for inline checkboxes

  • Loading branch information...
commit 2b1786d5ee3729862626aa65c842b0146a4c01aa 1 parent e336cd1
Miķelis Vindavs axelarge authored

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. +1 2  app/views/articles/_form.html.erb
3  app/views/articles/_form.html.erb
... ... @@ -1,4 +1,3 @@
1   -
2 1 <div class="well form-actions">
3 2 <a href="#" class="btn btn-primary left" data-code="show">
4 3 toggle code examples for each form element.
@@ -55,7 +54,7 @@ simple_form_for(@article, :html =&gt; { :class =&gt; 'form-horizontal' }) do |f|
55 54
56 55 <%= f.input :content_type, :collection => content_type_options, :as => :check_boxes, :item_wrapper_class => 'inline', :label => 'Inline checkboxes' %>
57 56 <pre class='prettyprint linenums lang-rb'>
58   - f.input :content_type, :collection =&gt; content_type_options, :as =&gt; :radio_buttons, :item_wrapper_class =&gt; &#x27inline&#x27;
  57 + f.input :content_type, :collection =&gt; content_type_options, :as =&gt; :check_boxes, :item_wrapper_class =&gt; &#x27inline&#x27;
59 58 </pre>
60 59
61 60 <%= f.input :content_type, :collection => content_type_options, :as => :radio_buttons, :label => 'Stacked radios' %>

0 comments on commit 2b1786d

Please sign in to comment.
Something went wrong with that request. Please try again.