Hello friends, I could need some advice on how to proceed with my
controllers.

1. GUI shows a calendar, I therefore need to setup a resource to show
the calendar. So I write a CalendarController.

2. User should be able to create a period in the calendar. By clicking
days in the calendar the period should be created persistently. I have a
Period-model for this.

Q: Where do I put the code for creating the Period? Should I setup a
PeriodController and redirect from CalendarController to
PeriodController.create somehow? Or maybe I should just do Period.save
from CalendarController?

Thanks!

/Rasmus
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to