options = {:checked => mark_all, :include_mark_all => true} page << "ActiveScaffold.mark_records('#{active_scaffold_tbody_id}', #{options.to_json});" if active_scaffold_config.model.marked.length>0 then if active_scaffold_config.model.marked.length < @page.pager.count then page.call 'ActiveScaffold.replace_html', active_scaffold_messages_id, active_scaffold_config.model.marked.length.to_s + " records marked. Press "mark_all",:mark_target=>"scope")+"\">here to select all #{@page.pager.count} records.".html_safe else page.call 'ActiveScaffold.replace_html', active_scaffold_messages_id, "All #{@page.pager.count} records marked" end else page.call 'ActiveScaffold.replace_html', active_scaffold_messages_id, "" end