Rails to static site

For users without an internet connection we are thinking about
converting a
rather large site to a DVD. As dynamic solutions with databases seem
hard
(see another thread) we are also considering a static html version. The
site is clearly convertible to a static version, I can make sure that
all
search functions are turned off.
Can the conversion itself optimized with Rails? Do you know solutions to
make a site static e.g. with different user agents? Or by treating the
requests as some different output format? (I’m thinking in the direction
of
the current HTML/XML output constructions…)

Bart

Bart B. wrote:

For users without an internet connection we are thinking about
converting a
rather large site to a DVD. As dynamic solutions with databases seem
hard
(see another thread) we are also considering a static html version. The
site is clearly convertible to a static version, I can make sure that
all
search functions are turned off.
Can the conversion itself optimized with Rails? Do you know solutions to
make a site static e.g. with different user agents? Or by treating the
requests as some different output format? (I’m thinking in the direction
of
the current HTML/XML output constructions…)

If you can set it up so the site displays all the pages you want to put
in the static version as a user clicks through it, you could use HTTrack

to make the static site for the DVD.

–Al Evans

On 6/14/06, Bart B. [email protected] wrote:

For users without an internet connection we are thinking about converting a
rather large site to a DVD. As dynamic solutions with databases seem hard
(see another thread) we are also considering a static html version. The
site is clearly convertible to a static version, I can make sure that all
search functions are turned off.
Can the conversion itself optimized with Rails? Do you know solutions to
make a site static e.g. with different user agents? Or by treating the
requests as some different output format? (I’m thinking in the direction of
the current HTML/XML output constructions…)

wget might be your friend here. Wget - GNU Project - Free Software Foundation for
more information.

I think the line you’re looking for is something like:

wget --convert-links --recursive http://myserver/

But the manual pages and the examples should help work out exactly
what you’ll need.

Matt

Wow. Nobody on the whole list has used dbmodel?

Greetings from a (hopefully) new Rails developer!

Just trying to use the dbmodel gem. I installed the gem, and
installation
went fine, but when I try to actually use the gem using

W:\BookingCalendar>ruby script/generate dbmodel bookingcal.xml

I get the message:

Couldn’t find ‘dbmodel’ generator

Has anyone used this gem and received the same error message?


On 6/16/06, Steve L. [email protected] wrote:

Wow. Nobody on the whole list has used dbmodel?

Never even heard of it… :wink:

http://lists.rubyonrails.org/mailman/listinfo/rails


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails