Rails style automatic rendering