# RESTful Design Question

**URL:** <https://www.ruby-forum.com/t/restful-design-question/121099>\
**Category:** Rails\
**Created:** [November 23, 2007, 6:38pm UTC](https://www.ruby-forum.com/t/restful-design-question/121099 "2007-11-23T18:38:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@johnk](https://www.ruby-forum.com/u/johnk)\
**Post date:** [November 23, 2007, 6:38pm UTC](https://www.ruby-forum.com/t/restful-design-question/121099/1 "2007-11-23T18:38:07Z")

</div>

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? 🙂

Thanks.

John

–  
John K.  
removed\_email\_address@domain.invalid

Blog: [http://www.kopanas.com](http://www.kopanas.com)  
Conference: [http://www.cusec.net](http://www.cusec.net)  
Twits: [http://www.twitter.com/kopanas](http://www.twitter.com/kopanas)

---

<div class="post-metadata">

**Author:** ![johnk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@johnk](https://www.ruby-forum.com/u/johnk)\
**Post date:** [November 23, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/restful-design-question/121099/2 "2007-11-23T18:47:30Z")

</div>

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
