Skip to content

Instantly share code, notes, and snippets.

Created April 22, 2009 10:22
Show Gist options
  • Save anonymous/99702 to your computer and use it in GitHub Desktop.
Save anonymous/99702 to your computer and use it in GitHub Desktop.
<% newarray = [] %>
<% i=0 %>
<% for client in @clients %>
<% if client.clientID == 2 then %>
<% i+=1 %>
<% newarray[i] = client %>
<% end %>
<% end %>
<% newarray.each do |j| %>
<%= j.clientID %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment