On 19 April 2016 at 19:53, Elton Santos <[email protected]> wrote: > 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') >
What is in params[:authorization][:value_solve]? Colin -- 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/CAL%3D0gLtf6qE3BR1ibdw5%2Bdq9qvnsPoVCL9U3ZhvJ3FnuBaKo9Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

