Routing question

Hi

If a URL ends in /xxx …

/ModelA/1/xxx
/ModelA/1/ModelZ/2/xxx

Is there a way to drop the XXX and the continue to resolve the URL
normally?

thanks!

Maybe I could ask this:

Is there an opportunity to modify “request.path” before Routing is
started?

Maybe I could manually modify the path and put the “/xxx” part into a
param?

Have been trying to google this, but really tricky to find info.

Maybe its not a great idea

But would really like to modify request.path before routing
begins :slight_smile:

Route globbing seems to be the answer, will give it a try

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs