[Rails 3] Creating helper tag with UJS
- by Theo B
Firstly, sorry for my english. I´m brazilian guy that is improving yet.
I want create a helper tag called "collection_cascading_select".
That helper is similar to "collection_select", but he has one more argument called "source".
The "source" is the other collection in the view.
Ever that other option is select in the "source", a javascript function needs run to gets his value. Then populate the "collection_cascading_select" collection agreed of that value.
That gets confusing ?!? Sorry... But help me! I'm one week in this problem and my brazilian brothers don´t are help me.
THANKS!