I’d like Rails to intercept the url’s of html pages in a certain
directory so I can embed them in my site. I put them in public/pages and
tried to catch them with a route like
However this only works if the file does not exist; e.g.
“pages/test.html” will only be routed if that file doesn’t exist,
otherwise it will just show the file.
Is there any other way I can reroute url’s of existing html files?
The reason I need to use the real directory and file names is that these
html pages contain images and cross-links which still need to work.