def somewhere_model_side
xml = Builder::XmlMarkup.new
xml.html do
xml.body do
xml.p{ "I'm in ur model, writing ur HTML" }
end
end
end
See also AlternateHardAndSoftLayers, ModelViewController, and ModelViewControllerMisconceptions...