RESTful Design Question

Stupid question. Have not programmed in a while and started a new app
and I want to use “good RESTful design”.

Correct me if I am wrong. In a good RESTful application for each
model you have a complimentary controller of the same name and
vice-versa. It is a 1-1 ratio in a perfect world.

If my assumption is correct then what would one do if they have a
landing page that really needs absolutely no model? It does not even
have dynamic data on it. It is just a landing page with data about
the upcoming site?

What say you? :slight_smile:

Thanks.

John

–
John K.
[email protected]

Blog: http://www.kopanas.com
Conference: http://www.cusec.net
Twits: http://www.twitter.com/kopanas

On 23 Nov 2007, at 18:37, John K. wrote:

If my assumption is correct then what would one do if they have a
landing page that really needs absolutely no model? It does not even
have dynamic data on it. It is just a landing page with data about
the upcoming site

Let apache/lighttpd/nginx serve static files, no need to make a
roundtrip to rails for that. Just replace the index.html contents in
the /public folder.

Best regards

Peter De Berdt