Convert dynamic rails app to static html

Can I convert a dynamic rails app to static html pages?

I'd like to build some small (portfolio) sites;

it would be nice if I could create them in Rails: create a basic scaffold to add about 20 projects...

Afterwards, the site wouln't d be updated anymore, so it doesn't have to be dynamic once it's finished...

Can I generate static html files for every one of my 20 project-pages?

I guess this shouldn't be that hard, since caching sort of uses the same technique...

Johan Van mol wrote:


Can I convert a dynamic rails app to static html pages?
I'd like to build some small (portfolio) sites;
it would be nice if I could create them in Rails:
create a basic scaffold to add about 20 projects...
Afterwards, the site wouln't d be updated anymore, so it doesn't have to
be dynamic once it's finished...
Can I generate static html files for every one of my 20 project-pages?
I guess this shouldn't be that hard, since caching sort of uses the same
technique...

You can just display source (ctl-u) for each page and save them to files. They will be a static copy of what the system generated.

Norm

I can't imagine much of a use case for Rails doing this, but why not just use wget to grab a complete site image?

Yes, wget would be a good option.

Just use something like HTTrack which will download the whole site (follow all the links, get the images, css, js, etc) and convert all the links for you.