Hi,
I was very excited to see that changeset, as I thought now I could use more concise routes for my spanish applications. However, there is a small remaining issue: action names.
For example, if I do map.resource :user, :as => 'usuario', I get the following two routes:
/usuario/new /usuario/edit
That is weird. I want the following:
/usuario/nuevo /usuario/editar
I could override named routes like this:
map.new_user 'usuario/nuevo', :controller => 'users', :action => 'new', :conditions => {:method => :get}
But wouldn't it be nice if I could do something like:
map.action :new, :as => 'nuevo'
To override the 'new' action path on all controllers. And this (or something less fugly):
map.resource :user, :as => 'usuario', :new => {:new => {:method => :get, :as => 'nuevo'}}
To override it on specific controllers.
Is this feasible?
Regards, Ivan V.