1
我對這個棘手的情況有疑問。我有代碼的單一選擇框,在那裏我可以選擇一個年份,並根據一年,我想回到屬於當年在另一選擇標記所有可能的值....基於另一個select_tag結果的動態選擇人口
<%= select "month_end", "year", MonthEnd.find(:all, :select => 'DISTINCT year', :order => 'year').collect{|x| [ x.year, x.id ]} %>
我已經試圖使用觀察領域,但它不起作用,我需要一些幫助。
非常感謝你的幫助,有一個偉大的X-MAS /新的一年
Duplicates:http://stackoverflow.com/questions/1925954/&http://stackoverflow.com/questions/1925275/ – 2009-12-18 17:00:47