<% lists = PaymentSetupList.all.asc(:created_at).map{|v| v} %> <%= select_tag "pay_options", options_for_select(lists.map{|v| t("payment_settup.#{v.payment_type}")}), :class => "pay_options" %>
<% lists.each_with_index do |list,index1| %>
<% list.get_pay_array.each do |child| %> <% if (!child[2].blank? && child[1]=='select') || child[1]!='select'%> <% end %> <% if child[1]=='select' %> <% if !child[2].blank? %> <% end %> <% end %> <% end %>
<% class_par = " #{child[4]}" if !child[4].nil? %> <%= select_tag("#{child[0]}",options_for_select(child[2],:selected => [child[3]]),:class => "payment_setup#{class_par}") %>
<% end %>