My project is a small online course. A course has four terms and each term has ten lessons. When you start the course you get access to the course intro and the first term intro and the first lesson. Every week you get an email saying that it''s time for your weekly lesson and when you log in, the side navigation bar shows links that give you access to the next lesson, so that you always have access to everything you have already done plus the new lesson each week. I''m not really sure how to start on this, any suggestions would be most welcome. -- Posted via http://www.ruby-forum.com/.
Ziggy Leitner wrote: [...]> I''m not really sure how to start on this, any suggestions would be most > welcome.What part are you having trouble with? Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
2009/7/30 Ziggy Leitner <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>:> > My project is a small online course. > A course has four terms and each term has ten lessons. > When you start the course you get access to the course intro and the > first term intro and the first lesson. > Every week you get an email saying that it''s time for your weekly lesson > and when you log in, the side navigation bar shows links that give you > access to the next lesson, so that you always have access to everything > you have already done plus the new lesson each week. > I''m not really sure how to start on this, any suggestions would be most > welcome.If I were in this situation I would start by getting the models setup with their relationships, using the scaffolds to build simple CRUD interfaces and provide tests to make sure that is working ok. Once that is going then you can build on top the UI that you want, a bit at a time, knowing that the underlying data is ok. Later you can remove any bits of the scaffold that are redundant. Others would tackle this differently of course. Colin
the data model looks like this: a course has many terms a term has many lessons a lesson has many components a user subscribes to a course. As I mentioned before, when the user subscribes they get an email once a week to tell them that their new lesson is now available. In order to present the user with a side navigation menu of all the lessons that they have completed thus far and now - after the email notification - including the new one for the current week I think something like this ought to work: When the user logs in I want to be able to find the course the user has subscribed to. (maybe a field in the user database table [what if they have subscribed to two courses???]) When the user logs in I want to be able to find out what term the user is currently doing. (maybe another field in the database table) maybe one more field for the current lesson? I guess this is where I''m then kind of lost, how does all this get passed up to the view to render the menu? the other thing that will need some smarts is updating the user model with next term and next lesson. Oh yes, I have the course basics up and running with shallow nested routes, took me a while to get all that, the notification and menu is core functionality though that I''m stuck on! -- Posted via http://www.ruby-forum.com/.