Sha256: 088d1f2188e0335bc10248bd09f6e5bdbc36c5473644d97120ed5dd83d3d2eb0
Contents?: true
Size: 720 Bytes
Versions: 5
Compression:
Stored size: 720 Bytes
Contents
.card.bg-light .card-body %h2= current_page_title %p What if there no records to render in a grid? There are three ways to define what to show in this case: %ul %li %code blank_slate with a block. This looks like a column definition, but the value returned by the block is rendred when there are no records. %li %code blank_slate whithout a block, but with one string argument. %li %code blank_slate with parameter %code partial: "partial_name" which defines a partial to render. = show_code .example1= render 'grid1' .example2= render 'grid2' .example3= render 'grid3'
Version data entries
5 entries across 5 versions & 1 rubygems