Is there a way to programmartically add a route? I have an outside process creating pages that I need to access, but I dont know their names or locations until runtime. -Janna B
I’m not sure but it seems possible to have a route at the end of your routes file (with the lowest priority) that would handle any un-handled requests. You could then dispatch it to wherever you want. Maybe there is a better way to do it though. Could you give some example URL’s?
Well, for example. I was going to have it write partials into /public/ blahblah/_mypartial!.erb
You can add a static file system path to your render call with the :file option