Ruby on Rails Tuesday, April 19, 2016

On 19 April 2016 at 14:02, Elton Santos <elton.melo.santos@gmail.com> wrote:
> My console is this:
>
> Parameters: {"utf8"=>"✓", "search_employee_by_cpf"=>"11111111111",
> "authorization_id"=>"4", "authorization"=>{"contract_number"=>["11"],
> "value_solve"=>["4343443", "", "", ""]}, "commit"=>"Reserve"}
> SQL (315.7ms) UPDATE "authorizations" SET "value_solve" = '---
> - ''4343443''
> - ''''
> - ''''
> - ''''
> ', "situation" = 2 WHERE "authorizations"."contract_number" = '11'
>
> How do I look like:
>
> Parameters: {"utf8"=>"✓", "search_employee_by_cpf"=>"11111111111",
> "authorization_id"=>"4", "authorization"=>{"contract_number"=>["11"],
> "value_solve"=>["4343443", "", "", ""]}, "commit"=>"Reserve"}
> SQL (315.7ms) UPDATE "authorizations" SET "value_solve" = ''4343443'',
> "situation" = 2 WHERE "authorizations"."contract_number" = '11'

You are passing an array for value_solve
"value_solve"=>["4343443", "", "", ""]]
you just want a single value.

Please quote the relevant parts of the previous message when replying
so we don't have to look back through old emails to find what you are
talking about. Thanks.

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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLt8NbZJT6BNuxD97WedPWAiEX-2HqnhkYdtsrW4QXqTOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment