On 19 April 2016 at 14:02, Elton Santos <[email protected]> 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 [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%3D0gLt8NbZJT6BNuxD97WedPWAiEX-2HqnhkYdtsrW4QXqTOA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

