// Paginator and search bar .grid-x .small-6.medium-8.large-9.cell // Paginator = render 'admin/logs/paginator' h1 Logs .small-6.medium-4.large-3.cell // Search form = form_tag url_for, :method=>'GET' = text_field_tag(:search, params[:search], placeholder: "Search...", maxlength: 50, size: 20, autofocus: true) // List of log messages .grid-x - if @logs.length>0 table tr th Timestamp th Message th Level th Section th IP address th Session token - @logs.each do |log| tr td =log.created_at td =log.message td =log.level td =log.section td =log.ip_address td =log.token - else p No logs found. Crazy. // Second paginator at the bottom so the user does not have to scroll up again = render 'admin/logs/paginator'