<% @custom_configs.each do |c| %>
<% title_field = c.title_field
uid_field = c.uid_field
bind_model = c.bind_model.constantize rescue nil
%>
<% if bind_model %>
" data-module="<%= c.module %>">
<%= select_tag("#{@field_name}[custom_data_field][bind_uid]", options_for_select(bind_model.where(title_field.to_sym.nin=>[nil,""]).map{|target_model| [target_model.send(title_field),target_model.send(uid_field)]},active_uid),{:id=>"custom_bind_uid"})%>
<% end %>
<% end %>