<% if @page_type == 'index' %>
Resources
<% @resources.each do |r| %>
Resource:
<%=r.resource_location %>
<% end %>
<% else %>
« Back to index
<%=@header_code %> <% @method_codes.each do |mc| %> <%=mc %> <% end %> <% end %>