Sha256: c660f229a74b44d076d569ea7d712a975962725b54821706fd7444958c58afc5
Contents?: true
Size: 414 Bytes
Versions: 24
Compression:
Stored size: 414 Bytes
Contents
<% resources.each do |key, value| %> <% klass = key.typus_constantize resource = "/admin/#{klass.to_resource}" %> <%= link_to :controller => resource, :action => "index" do %> <h3><%= klass.model_name.human.pluralize %></h3> <% end %> <% if @resource.model_name.eql?(key) %> <ul> <% value.each do |v| %> <li><%= v %></li> <% end %> </ul> <% end %> <% end %>
Version data entries
24 entries across 24 versions & 1 rubygems