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