I use activescaffold embedded in a form with a constraint set. In the model (VolunteerOpportunity) associated with the AS list, I have an after_initialize method that sets some default values. This after_initialize method is dependent on the constrained value (:event_id). More specifically, I need to be able to set the default value of the VolunteerOpportunity's start_time to the associated Event's start time.
But the AS new method does not seem to set the value of the constrained field. It does set it on create. Is there anyway that I can have the constrained value set when New is called? Can I override the new action to do this, or use a before_filter? Your advice is greatly appreciated. Best, 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.
