I have a jbuilder template that makes a json representation of one of my models as follows:
json.(model, :id, :field1, :field2, :url)
url includes "&" s if I just access the field from the console, but when jbuilder converts it to json, the result replaces all the "&" with \ u0026, which, although it is unicode for ampersand, works for me.
Is there a way to get jbuilder to stop messing with my ampersands? thank
source
share