My view rhtml contains the following
<% for contactaddress in @contact_address %>
<%= text_field “contactaddress”, “addr_line1”, “size” => 50 %></
In the above code @contactact_address contains several contact address
objects. The for loop iterates each of them and tries to show the value
of model attribute addr_line1 in the text input box.
In the rhtml it creates a text input field but it doesn’t show value of
addr_line1 in the text input box.
What is wrong here? Thanks in advance for your help…