Oliver Andrich
2007-Jun-10 13:32 UTC
Learning REST, singleton resources and connecting it to the other resources
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 Andrich <oliver.andrich-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---