bs_smart_collection collection_config
placeholder: 'Filter by Name',
collection_rendering: method(:collection_rendering)
def collection_rendering products
products.each do |product|
bs_col xl: 4, class: "mb-3" do
def collection_card product
bs_card title: product.name, subtitle: "#{product.price_in_euro} €", class: "h-100" do
paragraph product.description, class: "fw-lighter"
transition path: edit_dummy_product_path(product), delay: 300 do
bs_btn outline: true, size: :sm, variant: :primary do
bs_icon name: 'arrow-right', size: 20
action product_delete_action_config(product) do
bs_btn outline: true, size: :sm, variant: :danger do
bs_icon name: 'trash2', size: 20
def product_delete_action_config product
path: dummy_product_path(id: product.id),