search for: current_entry

Displaying 2 results from an estimated 2 matches for "current_entry".

2012 Nov 12
3
Updating objects in arrays
Perhaps this is a Rails issue. However, I need to first determine whether I simply am missing something about updating members of an array. I have an array of 10 ActiveRecord objects. I wish to iterate over the array and update an attribute. When I do this the underlying table row changes but the object in the array frequently does not. For example: count = 0 current_entries.each do
2006 Apr 21
2
Forms Containing Collections problem
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