<% seminar_review.default_topics.each_with_index do |v,ii| %>
X
<%= select_tag("seminar_main[seminar_reviews_attributes][#{count}][default_topics][]" , options_for_select(@fields_translations.zip(@fields),v),{:class=>"select_field_types","data-index"=>count}) %>
<% select_index = @fields.index(v) %>
<% checked_values = seminar_review.default_topics_values[ii] %>
<% @fields_values[select_index].each_with_index do |v,iii| %>
<% checked = checked_values.include?(iii.to_s) rescue false %>
<% end if select_index.present? %>
<% end %>
<% select_keys << select_tag("seminar_main[seminar_reviews_attributes][#{count}][default_topics][]" , options_for_select(@fields_translations.zip(@fields)),{:class=>"select_field_types","data-index"=>count}) %>