For some reason when I use the 'odd', 'even' trick. It will also display the text on the view page above my table. So it'll show "odd" "even" based on how many rows there are in the table. It clutters up my page.
panel 'Cities' do
table do
tbody do
f.collection_check_boxes(:city_ids, City.select('id, name, state').order(:name), :id, :name_and_state) do |city|
tr(class: cycle('odd', 'even')) do
td(class: 'col col-checkbox') { city.check_box } +
td(class: 'col col-text') do
city.label do
city.text
end
Here's a picture example http://ift.tt/1V24u87
Aucun commentaire:
Enregistrer un commentaire