Sha256: ce0027e735ee7cc016f1a2f0e060ecf7f257bdacb9ba3d6c7804a2658fbb1bc2
Contents?: true
Size: 938 Bytes
Versions: 12
Compression:
Stored size: 938 Bytes
Contents
.well %h2= current_page_title %p Method %code current_page_records sent to the grid object returns a list of all ActiveRecord objects currently displayed on the page. %p Method %code all_pages_records returns a list of all ActiveRecord objects throughout all pages of the current selection. %code all_pages_records causes an additional SQL query to be executed and has to be used with care. %p Both methods can be used after the grid definition only. = show_code = render 'grid' .row-fluid .col-md-6 .well - current_page_records = @tasks_grid.current_page_records = current_page_records.size records on the current page: = current_page_records.map(&:id).to_sentence .col-md-6 .well - all_pages_records = @tasks_grid.all_pages_records = all_pages_records.size records throughout all pages: = all_pages_records.map(&:id).to_sentence
Version data entries
12 entries across 12 versions & 2 rubygems