How do I render a partial of a different format in Rails?

Beginning with Rails 3.2.3, when calling render :partial (only works outside of the respond_to block).

render formats: [ :html ]

instead of

render format: 'html'

Leave a Comment