I have a simple join=yes that can be passed by GET to any of my app urls. When detected it simply redirects to a specific JoinsController controller. Otherwise it just keep the regular flow.
My questions is how could I match a specific pattern like join=yes in order to redirect it to the JoinsController?
Try putting some kind of constraint into your
routes.rb. e.g.:More on constrains in Rails API – ActionDispatch::Routing::Mapper::Scoping