I'm learning RoR and I need to solve a particular problem. I have a
database which I currently use to create a complete web site, it has
pages like \Europe\Spain\hotels-in-Spain.html and \Europe\Spain
\Index.html, and \Europe\Index.html, you get the general idea. Reading
about routes.rb I see that with some tricking about I could preserve
this search engine friendly way of doing things, but for the most part
these pages are static and change maybe once a week or even less.
Rather than have Rails generate a new page from scratch on each
request, I want to use Rails to create the entire web site and write
it into the right directories as static pages, with just a few dynamic
pages, or maybe some AJAX sections on the static pages.
How do I do it?