I’m having trouble making my application restful. I want to show posts
between 2 dates.
For example posts between march 2007 and may 2007. I don’t know how to
represent this timespan a single resource because it has 2 parts: from
and to. The url I’m looking for is something like this /from/
But that means that there are 3 resources here: “From” resource, “To”
resource and “Posts”.
And nested routes would look something like this:
map.resources :from do |from|
from.resources :to do |to|
Is this solution ok, or there is some more elegant way of solving