<% @i = 0 %> <% @crm_customers.each do |crm_customer| %> <% if crm_customer.customer_id != "CUS-000000000001" && crm_customer.customer_id != "CUS-000000000002" %> <% end %> <% end %>
<%= form_tag crm_customers_path, :method => :get do %>
<% end %>
Select Sr.no Name Company Contact no Email
<%= @i += 1 %> <%= crm_customer.name %> <%= crm_customer.company rescue '-' %> <%= crm_customer.contact_no %> <%= crm_customer.email %> <%= link_to 'Show', crm_customer_path(crm_customer) %>

<%= paginate @crm_customers %>
<%= render 'card_read_form' %>
<%= render 'new_form', crm_customer: @crm_customer %>

Back