define_resource name: '<%= name %>' do |r| r.description = '<%= description %>' <% fields.each do |field| %> field :<%= field.name %>, description: '<%= field.description %>' <% end %> end