<% @records.each do |record| %> <% assignments = {} %> <% if !params[:fill].nil? %> <% params[:fill].each do |key, value| %> <% assignments[value] = eval("record.#{key}") %> <% end %> <% end %>
"> <% if params[:method_names] %> <% params[:method_names].each do |method_name| %>
<% field_class = eval("record.#{method_names}.class") rescue nil %> <%= link_to( (field_class == TrueClass) | (field_class== FalseClass) ? check_box_tag(method_name , eval("record."+method_name) , eval("record."+method_name) , :disabled=>true) : eval("record."+method_name)||'', { :controller => :looking_for, :action => :assign_and_close, :assignments => assignments }, :remote=> true) rescue '' %>
<% end %> <% end %>
<% end %>