Iterating over all the named routes?

Hello!
We all know that we expose the resources in the config/routes.rb
like this:

map.resources :account

This create a named url. But how can I iterate through all the
available named routes?

Regards,
Mohsin

On 4 Mar 2008, at 12:44, MohsinHijazee wrote:

Hello!
We all know that we expose the resources in the config/routes.rb
like this:

map.resources :account

This create a named url. But how can I iterate through all the
available named routes?

Does rake routes do what you want?

Fred

On Mar 4, 6:17 pm, Frederick C. [email protected]
wrote:

This create a named url. But how can I iterate through all the
available named routes?

Does rake routes do what you want?

Fred

No it has to be actually in the code. let me see the code of the
routes task then…