h1 Application emails ul.list-unstyled - @preview_class_names.each do |m| li.col-lg-6.col-sm-6 h2= m.underscore.sub(/(_mailer)?_preview$/, '').humanize ul.list-group - m.constantize.instance_methods(false).map(&:to_s).each do |method| li.list-group-item a href=rails_email_preview.email_url(mail_class: m.to_s.underscore, mail_action: method.to_s) = method.to_s.humanize