Hi all.
I'm just starting a new app from scratch, and want to do it RESTfully...
I've seen many blog posts, articles, and DHH's RailsConf keynote about REST and resources and still have some questions about it.
I've no problems mapping some concepts to resources like the classics article, post, person, event, etc... But some aspects of a WebApp I find no REST answer, like a "homepage" which shows a summary of the latests articles, posts and events in the site. It's not about 1 resource or a collection of resources of the same kind, it's about a bunch of different resources.
Which would be the best RESTful approach to this kind of functionality?
I obviously missed some point here or haven't realized it yet.
Other examples I can think of: a dashboard, "about this site" pages, etc...
A related question is how to manage "layout" related data. I mean, if I have a sidebar in my layout which needs some data to be retrieved in every request, I'd usually use a before_filter at the ApplicationController level. Is that kind of controller activity (doing things beyond the scope of the specific managed resource) still considered "clean" thinking in pure RESTfullness compliance?
Thank you, Diego