Como renderizo uma parcial de um formato diferente no Rails?

Estou tentando gerar uma resposta JSON que inclui algum HTML. Assim, eu tenho/app/views/foo/bar.json.erb:

{
  someKey: 'some value',
  someHTML: "<%= h render(:partial => '/foo/baz') -%>"
}

Eu quero que ele renderize/app/views/foo/_baz.html.erb, mas renderizará apenas/app/views/foo/_baz.json.erb. Passagem:format => 'html' não ajuda.

questionAnswers(11)

yourAnswerToTheQuestion