Sha256: 96d876f20a3aacf535a352c6b93dea2540fe982d801e2bf1624bc4d7ddb158e4
Contents?: true
Size: 664 Bytes
Versions: 12
Compression:
Stored size: 664 Bytes
Contents
.well %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
12 entries across 12 versions & 2 rubygems