# Rails site on CD

**URL:** <https://www.ruby-forum.com/t/rails-site-on-cd/169109>\
**Category:** Rails\
**Created:** [May 29, 2009, 3:33pm UTC](https://www.ruby-forum.com/t/rails-site-on-cd/169109 "2009-05-29T15:33:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c2a13f/32.png) [@Robin\_F](https://www.ruby-forum.com/u/Robin_F)\
**Post date:** [May 29, 2009, 3:33pm UTC](https://www.ruby-forum.com/t/rails-site-on-cd/169109/1 "2009-05-29T15:33:36Z")

</div>

Hi All

I’ve been asked to provide a copy of a site I’ve just put together on  
a CD so that it can be tailed in with a Powerpoint presentation (I  
presume links from the presentation to a local copy of the site).

Does anyone have any thoughts on how one could go about this? The  
only thought I had was to find a way to automate a visit to every page  
and then store a copy of the page as a static html file.

All suggestions gratefully received!

Thanks

Robin

---

<div class="post-metadata">

**Author:** ![Robin\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c2a13f/32.png) [@Robin\_F](https://www.ruby-forum.com/u/Robin_F)\
**Post date:** [May 29, 2009, 4:02pm UTC](https://www.ruby-forum.com/t/rails-site-on-cd/169109/2 "2009-05-29T16:02:43Z")

</div>

Robin F. wrote:

> Does anyone have any thoughts on how one could go about this? The  
> only thought I had was to find a way to automate a visit to every page  
> and then store a copy of the page as a static html file.

When you use caches\_page in your controllers it’ll create a directory  
structure in your public directory that includes static versions of the  
pages you set to use. After you do that, you can just take the public  
directory and browse through that omitting the rest of the app. That  
would probably be the best way to go about it.

---

<div class="post-metadata">

**Author:** ![Robin\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c2a13f/32.png) [@Robin\_F](https://www.ruby-forum.com/u/Robin_F)\
**Post date:** [May 29, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/rails-site-on-cd/169109/3 "2009-05-29T16:10:37Z")

</div>

Great stuff! Thanks Jack!

On May 29, 3:02 pm, Jack B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Robin\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c2a13f/32.png) [@Robin\_F](https://www.ruby-forum.com/u/Robin_F)\
**Post date:** [May 29, 2009, 4:03pm UTC](https://www.ruby-forum.com/t/rails-site-on-cd/169109/4 "2009-05-29T16:03:22Z")

</div>

[http://www.bestechvideos.com/2009/03/21/railslab-scaling-rails-episode-2-page-caching](http://www.bestechvideos.com/2009/03/21/railslab-scaling-rails-episode-2-page-caching)

There’s a good screencast to get you started.

---

<div class="post-metadata">

**Author:** ![Robin\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c2a13f/32.png) [@Robin\_F](https://www.ruby-forum.com/u/Robin_F)\
**Post date:** [May 29, 2009, 5:26pm UTC](https://www.ruby-forum.com/t/rails-site-on-cd/169109/5 "2009-05-29T17:26:47Z")

</div>

Robin F. wrote:

> Hi All
> 
> I’ve been asked to provide a copy of a site I’ve just put together on  
> a CD  
> […]

There have been a number of discussions on this list about packaging a  
Rails application for local execution. Joyent’s Slingshot seems to be  
what I hear come up most often, and it also might be feasible to package  
it as a java app with JRuby. These solutions should help if static  
pages are not what you need.

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid
