Can anyone tell me why I’m getting the error “The error occured while
evaluating nil.id_before_type_cast” for the following view code
<% for entry in participant_portfolio.portfolio_entries -%>
<%= select “entry” , :id, @buyer_profiles,
:selected => entry.buyer_profile_id %>
<% end -%>
This seems to only happen when I use “entry” instead of just
“entry”. I need the id of the entry being written in the form and
thus would prefer to use the “entry” method.
Page 344 of AWDWR makes it look like it should work, but for some
reason I can’t get it to.
Any help is appreciated!