I\'m trying to generate a JSON response that includes some HTML. Thus, I have /app/views/foo/bar.json.erb:
/app/views/foo/bar.json.erb
{ someKey: \'some value\', someH
Beginning with Rails 3.2.3, when calling render :partial (only works outside of the respond_to block).
respond_to
render formats: [ :html ]
instead of
render format: 'html'