# Reserved words in routes

**URL:** <https://www.ruby-forum.com/t/reserved-words-in-routes/130266>\
**Category:** Rails\
**Created:** [February 26, 2008, 10:19pm UTC](https://www.ruby-forum.com/t/reserved-words-in-routes/130266 "2008-02-26T22:19:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [February 26, 2008, 10:19pm UTC](https://www.ruby-forum.com/t/reserved-words-in-routes/130266/1 "2008-02-26T22:19:06Z")

</div>

I have some models in a system that have less-than-ideal names because  
the ‘natural’ names clash with reserved words. In order to get nicer  
URLs I’ve put some entries in the routes file, mapping the reserved  
words to non-reserved words; e.g.:

map.resources :templates, :controller =\> :template\_headers

So, URLs that were …/template\_headers/… can be replaced with …/  
templates/… , which matches what the users would expect to see.

Early testing hasn’t shown any issues, but I’m wondering if anyone has  
any in-depth experience of this.

---

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [May 21, 2008, 12:07am UTC](https://www.ruby-forum.com/t/reserved-words-in-routes/130266/2 "2008-05-21T00:07:42Z")

</div>

I had a similar problem using ‘serie’ (data series for charting)… so I  
choose ‘collection’ instead ☹

I encountered this problem whith action name too…

Is there a list of reserved words concerning rails routes?

---

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [May 21, 2008, 12:11am UTC](https://www.ruby-forum.com/t/reserved-words-in-routes/130266/3 "2008-05-21T00:11:34Z")

</div>

> Is there a list of reserved words concerning rails routes?

[http://wiki.rubyonrails.org/rails/pages/ReservedWords](http://wiki.rubyonrails.org/rails/pages/ReservedWords)
