I'm new to rails so I apologize for my ignorance.
I'm setting a constant in a class outside of a method:
PARAM = { #... => ...
'field' => escape('somethingwith/slashes')
}
and get a NoMethodError: undefined method 'escape'
I tried Rack::Utils::escape and Rack::Utils.escape instead, but both don't work.
Thanks in advance.