I use AS to list and create events. Events have polymorphic relationships with many objects in the site.
For each object (classroom, grade, group, etc), I use an embedded scaffold to list the related events and allow users to create new events. This works great and has had a great impact in my ability to get my application up and running. Students also have relationships with the same objects. A student can therefore have events by aggregating all of the events from the objects related to the student. For the student, these events are show in a non-AS list (as there is no constraint or condition I could use to limit the list of events for that student). Now, I would like to have events which are just for the student, and would be added to the list of related object events in that student's list of events. Preferably, to keep the ui consistentent, I would like to show on the student page the same inline form that currently displays when clicking the New Events button on other object pages. However, i don't want to simply embed the scaffold as I do for other objects, as this would then display the student events in two lists, one for the events with a polymorphic relationship to the student, and the other of all of the events from related objects (which also includes the events directly tied to the student). So, I was wondering if there is someway to include just the Add New Event button, to the student page? When clicking the button, a user would be presented with the inline Event form, with constraints to limit new Events to have a polymorphic relationship to the Student. Another way of asking, could I include the same or similar embedded scaffold in the student's page as I do for other objects, but not show any list members, including not showing the list headers? One final way of asking, can I have a New Button bound to an AS inline form and constraints that is outside of or separated from the AS header? Can the New button stand alone? Any advice would be greatly appreciated. Tom -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.
