markup do |m| m.h1 "Editing <%= singular_table_name %>" m << render('form') m << link_to('Show', @<%= singular_table_name %>) m << link_to('Back', <%= index_helper %>_path) end