%h1= params[:model].titlecase %p= link_to "Add More Data", new_data_set_path(:model => params[:model]) - if !@data_sets.blank? %table %thead %tr - attributes_for(@model_constant, :ignore_image_fields => true).each do |attribute| %th= attribute.to_s.gsub("_","").titlecase %th Actions %tbody - @data_sets.each do |data_set| %tr - attributes_for(@model_constant, :ignore_image_fields => true).each do |a| %td= pretty_format_type(data_set.send(a)) %td = link_to "View", data_set_path(:model => params[:model], :id => data_set.id)  |  = link_to "Edit", edit_data_set_path(:model => params[:model], :id => data_set.id) - else %p== Currently there are not any #{@model_constant.name.pluralize.titlecase} in the system - content_for :subnavigation do = render :partial => "brick_layer/shared/custom_data_sets_list"