<%= @users = User.find(:all).map { |u| [u.fullname, u.id] }
select(:time_price, :employee_id, @users,{:include_blank => true}, :onchange=>remote_function(
:with => "'time_price_employee_id='+value",
:url => { :action => "search_ajax"}
))%>
select(:time_price, :employee_id, @users,{:include_blank => true}, :onchange=>remote_function(
:with => "'time_price_employee_id='+value",
:url => { :action => "search_ajax"}
))%>
介绍了一个用于查询用户数据的时间价格组件,该组件能够通过Ajax远程调用搜索功能并返回员工姓名及其ID供选择。
4194

被折叠的 条评论
为什么被折叠?



