<% content_for :page_specific_css do %> <%= stylesheet_link_tag "https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" %> <%= stylesheet_link_tag "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" %> <%= stylesheet_link_tag "tickets/ticket_index" %> <% end %> <%= render :partial => "search_form" %>

Urgent Tickets

<% @categories.each do |category| %> <% if !@urgent_tickets[category].blank? %>

<%= category.title %>

<%= render :partial => "ticket", :collection => @urgent_tickets[category] %>
<% end %> <% end %>

Tickets

<% @categories.each do |category| %>

<%= category.title %>

<%= render :partial => "ticket", :collection => @tickets[category] %>
<% end %>