Since there is only 3 types of views for a calendar, I'd recommend going 
with something more like this:

/calendars/1/day # day view for calendar 1
/calendars/1/week # week view for calendar 1
/calendars/1/month
/calendars/2/day

/pets/21/calendars/1/month # Fido's appointments in calendar 1, month view
/groomers/4/calendars/1/day # Groomer Bob's appointments in calendar 1, 
day view

resources :calendars, :member => {:day => :get, :week, => :get, :month 
=> :get}
resources :pets do
  resources :calendars, :member => {:day => :get, :week, => :get, :month 
=> :get}
end

I'm not sure what the next and previous actions are supposed to do, but 
if that is the way you'd like to have your routes, you probably want this:

resources :calendars, :member => {:next => :get, :previous => :get}
resources :pets do
  resources :calendars, :member => {:next => :get, :previous => :get}
end

That should get you want you wanted.

Derek

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to