# Learning REST, singleton resources and connecting it to the

**URL:** <https://www.ruby-forum.com/t/learning-rest-singleton-resources-and-connecting-it-to-the/106436>\
**Category:** Rails\
**Created:** [June 10, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/learning-rest-singleton-resources-and-connecting-it-to-the/106436 "2007-06-10T15:33:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oandrich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/3da27b/32.png) [@oandrich](https://www.ruby-forum.com/u/oandrich)\
**Post date:** [June 10, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/learning-rest-singleton-resources-and-connecting-it-to-the/106436/1 "2007-06-10T15:33:23Z")

</div>

Hi,

I am still having here and there problems, when developing a RESTful  
application. After completing my first personal toy up, I felt like  
being on the way to understand REST in rails. 🙂

But now I have the need for a dashboard in an application. Sounds like  
a nice singleton resource with only an index method. But the next  
question is, how to get the other resources connect or better  
displayed on the dashboard.

On my dashboard I want to display the resources memos, anniversaries,  
events, topics, etc. grouped on a daily basis. The dashboard will  
always show the current day and the next three days. Based on that, I  
have the following questions and would be more then happy, if anybody  
can share some insights with me.

- How can I connect the dashboard to the other resources? Currently I  
think, that the dashboard controller will fetch the resources and  
embed it in the web page.

- How do I have to extend resources so that I can do something like  
getting the anniversaries for the 2007-06-15? In my imagination that  
should result in an URL like /anniversaries/2007/06/15 and I should  
also put new anniversaries using that way…

Hopefully, I have not screwed it up completely, but your are  
absolutely free to tell me, that I haven’t understood REST. 🙂

Best regards,  
Oliver

–  
Oliver A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
