Sha256: ecd4d6bb75c3b4bea1083aa10132a6f211d4c6a4f84b71436bdcb8898a14d070
Contents?: true
Size: 674 Bytes
Versions: 5
Compression:
Stored size: 674 Bytes
Contents
:css table.my-grid { border: 1px solid red; } table.my-grid tr.my-header { background-color: #ebebeb; } .card.bg-light .card-body %h2= current_page_title %p It is possible to override the default ordering by specifying a Proc to define the key to sort on. This key can be a method of the model or other Ruby code. "Status Name" sorts on Status#number_of_vowels. %p Note that this method requires loading every result of the query into memory and running the Proc on each, so is unsuitable for a large number of results or expensive calculations. = show_code .row .col-md-6 = render 'grid', grid: @status_grid
Version data entries
5 entries across 5 versions & 1 rubygems