# Removing format from routes

**URL:** <https://www.ruby-forum.com/t/removing-format-from-routes/143683>\
**Category:** Rails\
**Created:** [July 21, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/removing-format-from-routes/143683 "2008-07-21T20:21:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xwordguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/65b543/32.png) [@xwordguy](https://www.ruby-forum.com/u/xwordguy)\
**Post date:** [July 21, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/removing-format-from-routes/143683/1 "2008-07-21T20:21:29Z")

</div>

Hi all,

We’re currently using format to serve up multiple versions of the same  
site (e.g., www and mobile). The choice as to which to serve is  
either set as the format GET parameter or via the subdomain of the  
request. What I’d like to do is only generate one set of URLs from  
routes. Right now, depending on the site the url\_for call is made  
from, we could have two URLs differing only in format that point to  
the same resource.

Any help would be much appreciated.

Thanks,  
Kevin
