Routes Refactoring

I have a simple rails3 app that has three nested resources:

Team has_many Groups
Group has_many Tools

To build the app quickly, I used standard restful practices, giving
URL’s like:


Now I’d like to make the URL’s more readable:


How should I set up my routes file to make this change?
Can the same controllers handle both route schemes?

Thanks, Andy