Reserved words in routes

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.

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

I encountered this problem whith action name too…

Is there a list of reserved words concerning rails routes?

Is there a list of reserved words concerning rails routes?

http://wiki.rubyonrails.org/rails/pages/ReservedWords

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs