I have rack middleware that gets the path:
path = env["PATH_INFO"]
I then check the path and act accordingly.
if (path != '/')
I would like to add logic so that if the URL does not equal /landing/XXXX
Where XXXX is dynamic? How can I do this with ruby on rails?
1 Answer