= table.association :gallery, sortable: :gallery_name
= table.column(:preview_picture) do |picture|
  %img.img-responsive.bottom-margin-2{ src: picture.image.url(:default_thumb) }
= table.column :name, sortable: true, class: 'truncate-chars truncate-chars-30'
= table.column :description, sortable: true, class: 'truncate-chars truncate-chars-30'
= table.column(:image_file_size, sortable: true) { |picture| number_to_human_size(picture.image_file_size) }
= table.timestamps
= table.association :gallery # , sortable: :gallery_name
= table.column(:preview_picture) do |picture|
  %img.img-responsive.bottom-margin-2{ src: picture.image.url(:default_thumb) }
= table.column :name, sortable: true, class: 'truncate-chars truncate-chars-30'
= table.column :description, sortable: true, class: 'truncate-chars truncate-chars-30'
= table.column(:image_file_size, sortable: true) { |picture| number_to_human_size(picture.image_file_size) }
= table.timestamps
Remove gallery sorting for now as it does not work on pg.
Remove gallery sorting for now as it does not work on pg.
