<% resources.each do |key, value| %> <% klass = key.typus_constantize resource = "/admin/#{klass.to_resource}" %> <%= link_to :controller => resource, :action => "index" do %>

<%= klass.model_name.human.pluralize %>

<% end %> <% if @resource.model_name.eql?(key) %> <% end %> <% end %>