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

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