
Untitled
By: a guest on Jan 28th, 2012 | syntax:
None | size: 0.49 KB | hits: 19 | expires: Never
<div id='companyajaxWrapper' width="250px">
<% @adr.each do |item| %>
<div onclick="<%= remote_function(:update=>"companyajaxWrapper",:url=>{:action=>:choosecustomer}) %>">
<%= item["cus_name"] %><br/>
<% if !item["addr_1"].nil? %>
<%= item["addr_1"].strip %><br/>
<% end %>
<% if !item["addr_2"].nil? %>
<%= item["addr_2"].strip %><br/>
<% end %>
<%= item["city"].strip %> <%= item["state"].strip %> <%= item["zip"].strip %><br/>
<br/>
</div>
<% end %>
</div>