How to handle static pages?

So in true Summer of Rails fashion I am trying to build my first Ruby
on Rails application, but what I haven’t been able to find any
information on is how to handle my gosh darn static pages. For example
my About page. I believe I should keep it handled in Rails so that it
can use the standard template, but I don’t know where to define it and
put the HTML. Thanks in advanced for any help!

-Bradly

Just drop it into public and it will be served up just fine. By default
rails will check inside public if it doesn’t have a route that matches
the
request.

The newer preferred/scalable way of doing things involves taking a http
server like nginx and using it to serve up the static pages from public
while you proxy “rails” requests through to a mongrel cluster running
alongside. But even in that case the norm is to put the static pages
inside
the public folder as well.

Bottom line is just drop into public, step back and watch the magic
happen!

John W Higgins
[email protected]

On 9/12/06, [email protected] [email protected] wrote:


John W Higgins
[email protected]

Why dont you try WebGen (on RubyForge).
Regards,
Swanand.

Hi Bradly,

2006/9/13, [email protected] [email protected]:

So in true Summer of Rails fashion I am trying to build my first Ruby
on Rails application, but what I haven’t been able to find any
information on is how to handle my gosh darn static pages. For example
my About page. I believe I should keep it handled in Rails so that it
can use the standard template, but I don’t know where to define it and
put the HTML. Thanks in advanced for any help!

Try Comatose, a rails plugin:
http://www.mattmccray.com/archive/2006/07/01/Comatose_a_Micro_CMS_Plugin

HTH
Beate