Displaying 1 result from an estimated 1 matches for "attribute_".
Did you mean:
  attribute
  
2006 Apr 16
8
"Cannot convert String to Integer" after using association
So, I''ve written a partial that does some stuff with a given instance of 
my class "entity". Entity is ActiveRecord. I''m able to retrieve all 
sorts of data from an @entity, until I do something like:
<% for @attribute in @entity.attributes %>
    <div id="attribute_<%= @attribute.id %>">
    	<%= render(:partial => ''attribute'') %>
    </div>
<% end %>
After which point, any attempt on my part to retrieve data from @entity 
( for instance <%= @entity.id %> results in:
cannot convert String into Intege...