%h2 Routes
- TransportMode.active.find(:all).each do |transport_mode| 
  = link_to transport_mode.name, "?mode=#{transport_mode.id}"
%table.routes
  %tr
    %th ID
    %th Name
    %th 
  -@routes.each do |route|
    %tr
      %td= link_to route.id, admin_url(admin_route_path(route))
      %td= route.name
      %td
= will_paginate @routes 
%h2 Routes
- TransportMode.active.find(:all).each do |transport_mode| 
  = link_to transport_mode.name, "?mode=#{transport_mode.id}"
%table.routes
  %tr
    %th ID
    %th Name
    %th 
  -@routes.each do |route|
    %tr
      %td
        = link_to route.id, route_url(route)
        = link_to "(admin)", admin_url(admin_route_path(route))
      %td= route.name
      %td
= will_paginate @routes 
Add view links and admin links for routes
Add view links and admin links for routes
