samedi 30 mai 2015

rails simple_form boolean with text label correctly implemented?

Trying to make a boolean with a label left but it fails, I could not find any complete example in the documentation online.

Currently Im using:

  = f.input_field :remember_me, as: :boolean,
                  :input_html => { :checked => true },
                  :inline_label => true

  = f.label "Remember me"
  %br

enter image description here




Aucun commentaire:

Enregistrer un commentaire