mardi 30 août 2016

Apply css on form collection

I'd like to apply this style :

       .tag-wrapper
          %ul
            %li.tag.fa.fa-plus
              = tag.name

on my current code :

= f.input :all_tags, :as => :check_boxes, :collection => @tags.map{|tag| tag.name}

But I don't know how to manage collection. And for know it looks like that : enter image description here

They are all display one over the over and not like a list or any other way which allow the user to click on each item.




Aucun commentaire:

Enregistrer un commentaire