can anybody help me?
i have 2 radio boxes
Categories: 1.Music 2.Sport
after selecting one, i need to load subcategories to drop-down menu
which located on the same rhtml page. and refresh it.
notice: i can access to subcategories using this syntax.
<%= f.select :category_id
,Category.find_all_by_type("Sport").collect
{|p| [ p.name, p.id ] }%>
or
<%= f.select :category_id
,Category.find_all_by_type("Music").collect
{|p| [ p.name, p.id ] }%>
but I have to make it dynamic drop-down menu.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---