# RESTful route aliases

**URL:** <https://www.ruby-forum.com/t/restful-route-aliases/119983>\
**Category:** Rails\
**Created:** [November 12, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/restful-route-aliases/119983 "2007-11-12T17:46:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarijokinen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aca169/32.png) [@jarijokinen](https://www.ruby-forum.com/u/jarijokinen)\
**Post date:** [November 12, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/restful-route-aliases/119983/1 "2007-11-12T17:46:53Z")

</div>

Is there any existing solution to automatically generate aliases for  
RESTful resource routes? I’m wondering this because one of my clients  
wants all URLs to be in Finnish, whereas my RESTful app is written in  
English (and I’d like to keep it that way).

I made quickly this morning a plugin which seems to work fine as long as  
I don’t use singular or nested resources. The plugin allows me to define  
aliases for routes and actions in config/restful\_aliases.yml, so I don’t  
have to overwrite named routes manually for every resource. Alternative  
syntax with this plugin is map.resources :products, :alias =\>  
‘tuotteet’.

However, before I go further with developing this plugin, I would like  
to  
hear if there is this kind of functionality already implemented in some  
other plugin (or in Rails core)?
