= bootstrap_form_for @product do |f| =f.text_field :name =f.select :category_id,Category.all.map{|c| [c.name,c.id]},label: 'Category' =f.number_field :price =f.number_field :stock_level %div{class: 'col-md-6 center-block'} =f.collection_radio_buttons :size,%w(s m l xl xxl),:to_s,:to_s =f.file_field :image =f.submit 'Save', class: 'btn-sm btn-success'