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