# How to bypass routing for a particular request?

**URL:** <https://www.ruby-forum.com/t/how-to-bypass-routing-for-a-particular-request/85042>\
**Category:** Rails\
**Created:** [March 22, 2006, 2:14am UTC](https://www.ruby-forum.com/t/how-to-bypass-routing-for-a-particular-request/85042 "2006-03-22T02:14:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [March 22, 2006, 2:14am UTC](https://www.ruby-forum.com/t/how-to-bypass-routing-for-a-particular-request/85042/1 "2006-03-22T02:14:35Z")

</div>

I would like to set up some my app. to display a standalone HTML page -  
not rendered through RoR per se.

Something like

render(:inline =\> some\_Javascript\_function…

then in the Javascript

some\_Javascript\_function,

I want to open up a popup with the URL I specify. However, because it  
is a relative URL, it is going through the RoR routing algorithm. I  
don’t want that - can I set up a route that basically lets the request  
pass through to the filesystem?

I’m sure there is a way to do this but it’s not obvious. I will look  
into the url\_for() documentation and see if I can find something.

Thanks,  
Wes

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [March 22, 2006, 8:58am UTC](https://www.ruby-forum.com/t/how-to-bypass-routing-for-a-particular-request/85042/2 "2006-03-22T08:58:28Z")

</div>

if the file that url matches to exist in your filesystem, then it will  
not  
reach routing process

for example if you have file rails\_root/public/page.html you can link to  
it  
as [Custom Application Development Software for Business - Salesforce.com](http://www.site.com/page.html) and it will be accessed directly  
without  
any rails intervention

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [March 22, 2006, 4:58pm UTC](https://www.ruby-forum.com/t/how-to-bypass-routing-for-a-particular-request/85042/3 "2006-03-22T16:58:36Z")

</div>

Emin,

Thanks, I forgot about the “public” option.

So…is this the only way to bypass routing - to put stuff into the  
“public” directory?

It seems like it might be nice to have a programmatic way to indicate  
that routing is not desired.

Thanks,  
Wes

Emin H. wrote:

> if the file that url matches to exist in your filesystem, then it will  
> not  
> reach routing process
> 
> for example if you have file rails\_root/public/page.html you can link to  
> it  
> as [Custom Application Development Software for Business - Salesforce.com](http://www.site.com/page.html) and it will be accessed directly  
> without  
> any rails intervention
