Hi everyone... Sorry if my question appears twice, as the earlier one i send didn''t get any reply. I have difficulties when I try to do a multiple update that involves datetime_select. below is the code where check_in has datetime type. <% for work_time in @work_times%> <td><%=datetime_select(:work_time, :check_in, :minute_step=>15)%></td> <% end %> in this case, there will be a list of datetime_select items coming out, but none of them come from the record. instead it display current time. I then try something similar to 4 days in rails: <% for work_time in @work_times%> <td class="table_data"><%=datetime_select("work_time["+work_time.id.to_s+"]", :check_in, :minute_step=>15)%></td> <% end %> which results in error: `@work_time[140]'' is not allowed as an instance variable name #in this case, 140 is the id of work_time table I must have missed some basic ideas, and if any people please take one step forward and guide me... thank you . sammy --------------------------------- 雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱 雅虎助手-搜索、杀毒、防骚扰 _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails