I have this error and this is my code:
params[:authorization][:contract_ids].each_with_index do |index, id|
Authorization.find(id).update_column(value_solve: params[:authorization][:value_solve])
end
This started with 0, and Authorization have id 1 and forward. How solve this? I tried many things but nothing don't worked =/