Resources

<%= link_to 'Add Equipment', new_resource_path, :class => "btn" if can? :create, Resource %> <% unless @resources.blank? %>
<% @resources.sort_by{|r| [r.category_name,r.name] }.group_by(&:category).each do |category,resources| %>
<%= render resources %>
<% end %>
<% end %>