http://groups.google.com/group/activescaffold/browse_thread/thread/2ae130edb1d0e2d2

Regards,
Kerry

Me wrote:
> Greetings!  First post.
>
> I've been greping the web for an AS example of populating a parent
> select box, and then dynamically changing a child select box through
> an "onchange" event.  I've seen the observer approach, but not with
> AS.  Is there support for such a thing?
>
> I found this thread where this same question was asked.
>
> http://www.mail-archive.com/[email protected]/msg00108.html
>
> The poor guy got a rather prickly response.  He eventually posted his
> solution in the last msg of the thread.  Unfortunately, I can't get
> that solution to work.  The example [in plain English] was, "Surveys
> have many survey_questions and surveys have_many survey_options."  If
> options are meant to be answers to questions, then it should be
> "Surveys have many questions.  Questions have many options [multiple
> choice]."   That would be three levels.  I tried looking at the
> survey_options table as some type of join with both foreign keys
> [survey_id, survey_question_id].  If that were the case, then survey
> "has many questions through survey_options."  That wasn't listed in
> the example.  Clearly, I'm confused somewhere.
>
> I would appreciate it if someone could explain the example referenced
> in the last message of the thread linked to above.  Alternatively. I
> would appreciate a clear example of this pattern.  I think that this
> is a common situation where some documentation would benefit many
> people.
>
> Thanks! Paul
>
> >
>
>   

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

Reply via email to