Thank you.  I'll give it a try.

Just FYI, the next and previous is for moving forward/backward
in time.  I.e., next week, next month...

-Roy


On Jan 17, 2009, at 8:38 PM, Derek Williams wrote:

>
> 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