diff --git a/app/views/active_scaffold_overrides/_horizontal_subform_header.html.erb b/app/views/active_scaffold_overrides/_horizontal_subform_header.html.erb new file mode 100644 index 0000000..eedab39 --- /dev/null +++ b/app/views/active_scaffold_overrides/_horizontal_subform_header.html.erb @@ -0,0 +1,11 @@ + + + <% + active_scaffold_config_for(record.class).subform.columns.each :for => record.class, :crud_type => :read, :flatten => true do |column| + hidden = column_renders_as(column) == :hidden + next unless in_subform?(column, parent_record) + -%> + "> + <% end -%> + +