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 =>
However, before I go further with developing this plugin, I would like
hear if there is this kind of functionality already implemented in some
other plugin (or in Rails core)?