rendering doc in different formats using rails renderers/responders