mardi 22 mars 2016

check_box helper with Foundation for Apps

I am trying to mimic this piece of code using the check_box helper but I am coming unstuck when getting it to display the label within the check

%li
  %span Default Address
  .switch
    %input#default_address{type: :checkbox, name: :default}
      %label{:for => "default_address"}


%li
      %span Default Address
      .switch
        = f.check_box :default, :id => 'default_address'
          %label{:for => "default_address"}




Aucun commentaire:

Enregistrer un commentaire