Yes, I guess that really want Array, look my console when I checked just
one:
{"value_solve"=>["", "", "333", ""], "contract_number"=>["33"]}
> -----
> SQL (317.5ms) UPDATE "authorizations" SET "value_solve" = '',
> "situation" = 2 WHERE "authorizations"."contract_number" = ?
> [["contract_number", "33"]]
After, when I checked just one, the first:
> {"value_solve"=>["111", "", "", ""], "contract_number"=>["11"]}
> -----
> SQL (317.5ms) UPDATE "authorizations" SET "value_solve" = '111 ',
> "situation" = 2 WHERE "authorizations"."contract_number" = ?
> [["contract_number", "11"]]
And, for last, when I just more then one:
{"contract_number"=>["11", "44"], "value_solve"=>["111", "", "", "444"]}
> -----
> SQL (297.7ms) UPDATE "authorizations" SET "value_solve" = '111',
> "situation" = 2 WHERE "authorizations"."contract_number" = ?
> [["contract_number", "11"]]
> SQL (121.9ms) UPDATE "authorizations" SET "value_solve" = '',
> "situation" = 2 WHERE "authorizations"."contract_number" = ?
> [["contract_number", "44"]]
--
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/f28fb2ff-8b42-45e3-b239-0c5c46654bf1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.