<%= form_for current_agent, url: '/my/current_agent', method: :patch do |f| %> En cours : <%= f.submit('select') %> <%= f.select(:id, options_for_select(current_user.agents.map { |a| [a.name, a.id] }, current_agent.id)) %> <% end %>
<%#= @stats[:counts].map { |k,v| pluralize(k.to_s.singularize, v) }.to_sentence %>
<%= p @stats[:count] %>
<%#= @stats[:current_agent][:counts].map { |k,v| pluralize(k.to_s.singularize, v) }.to_sentence %>
<%= render partial: current_agent %>