Forum: Ruby on Rails URL to method?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
87fad4231e8eca031c5864f442aaec4e?d=identicon&s=25 unknown (Guest)
on 2006-01-17 20:22
(Received via mailing list)
Do I need to edit routes.rb to get the following behavior?

URL				==> method (source)
/admin 			==> AdminController#index (/controllers/admin_controller.rb)
/admin/teams/list 	==> Admin::TeamController#list
/admin/teams/edit/1	==> Admin::TeamController#edit(:id => 1)

And will it wreck havoc with my views?

Visit our website at

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
This topic is locked and can not be replied to.