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

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