Hi Peter,
Peter Alvin wrote:
> I want to have the second select options dependent on the
> selection of the first select option. Is this built into Rails?
No.
> I''d rather not right JavaScript and Ajax to pull values in
> background unless necessary.
It''s necessary, but not difficult. You put an observe_field on the
first
select that calls a controller method when the select changes, passing along
the value selected. The controller method (re)renders the second select via
rjs, either inline in the method or via a separate rjs view. Search the
list archives. The question''s been asked / answered many, many times.
HTH,
Bill
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---