Damm, my problem continues. I have this:
@selected_ids.zip(params[:authorization][:contract_number]).each do
> |id, value|
> Authorization.where(contract_number:
> params[:authorization][:contract_number]).update_all(value_solve:
> params[:authorization][:value_solve], situation: 2)
> end
Where *@selected_ids = params[:authorization][:contract_number]*
haven't error, but in console my consult is wrong:
UPDATE "authorizations" SET "value_solve" = '---
> - ''''
> - ''4345''
> - ''454''
> - ''''
> ', "situation" = 2 WHERE "authorizations"."contract_number" IN ('22', '33')
And my column value_solve on Table Authorization is:
*---*
*- ''*
*- '4345'*
*- '454'*
*- ''*
for each line checked this value repeat =(
=/
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/50035087-fb05-4485-bb9e-7bcdb2879a09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.