(I posted this earlier but it doesn't appear on the group, so I'm writing it again, If it appears twice, I apologize.)
I have a drop-down box that allows the user to select a language. I want to use Ajax to render a filtered list of items based on the language selected. I don't want the user to press a Submit button nor refresh the page, of course.
I have it working, but my solution ugly so I believe I'm not doing it the proper Rails way.
I'm using the standard collection_select in my view:
<%= collection_select ('item', 'language_id', @languages, 'id', 'lang', {}, { :id => 'lang_select' } ) %> <%= observe_field( 'lang_select', <snip> %> ...