page.grid do |grid| grid.id "grid-accounts" grid.title "List All Accounts" grid.base_path "/backend/accounts" grid.forgery_protection_token request_forgery_protection_token grid.authenticity_token form_authenticity_token grid.tbar :default grid.store do |store| store.url "/backend/accounts.json" store.fields @column_store.store_fields end grid.columns do |columns| columns.fields @column_store.column_fields end grid.bbar :store => grid.get_store, :pageSize => params[:limit] end