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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to