How to get all urls of my application?

Hello everyone, how can I get all available urls of my application, I don't mean rake routes I mean some code that returns literally all the urls (or paths)

for example

let's say it's a blog application, with this code I should be able to see:

/ /about /contact /posts /posts/2011-08-18 /posts/2011-08-18/blah-blah /posts/2011-08-15/lalala /posts/2011-08-18/foo /posts/2011-08-18/bar /posts/2011-08-18/baz

Well, this is the point.. do you have any idea on how to do it?

A appreciate any reply!

Thanks in advance.

Hello everyone, how can I get all available urls of my application, I don't mean rake routes I mean some code that returns literally all the urls (or paths)

for example

let's say it's a blog application, with this code I should be able to see:

/ /about /contact /posts /posts/2011-08-18 /posts/2011-08-18/blah-blah /posts/2011-08-15/lalala /posts/2011-08-18/foo /posts/2011-08-18/bar /posts/2011-08-18/baz

Well, this is the point.. do you have any idea on how to do it?

Assuming you have linked all of these, you could crawl the site with wget, pipe the filenames to cat and build a text file. What form are you looking for these paths? Do you need a text file, or do you want to generate a sitemap or something like that?

Walter