I am using Ruby on Rails and I have a location in my database with the name:
1A J@ck$on & S0n's #{10}
I am receiving this name via a webhook and then searching my database with it however it does not find the location name ( it is instead searching for the interpolated name:
1A J@ck$on & S0n's 10
How can I receive this string via a webhook like this:
@location = inbound_webhook_request['location']
And then put it in a pg "like" query as shown below:
Location.where("name ~* ?", @location['name'])
Without it being interpolated along the way?