markup do |m| m.p id: 'notice' m.dl do <% attributes.each do |attribute| -%> m.dt '<%= attribute.human_name %>:' m.dd @<%= singular_table_name %>.<%= attribute.name %> <% end -%> end m << link_to('Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>)) m << link_to('Back', <%= index_helper %>_path) end