Skip to content

error updating project on berkeley instance #47

@tansaku

Description

@tansaku

I was just looking to see if any berkeley projects had been added and there was just one element with a missing key - I tried to add the key 'url' but got this error:

2016-10-12T13:50:01.288296+00:00 app[web.1]:   Rendered projects/_form.html.haml (25.9ms)
2016-10-12T13:50:01.288494+00:00 app[web.1]:   Rendered projects/edit.html.haml within layouts/application (26.4ms)
2016-10-12T13:50:01.289306+00:00 app[web.1]: Completed 200 OK in 37ms (Views: 13.2ms | ActiveRecord: 18.6ms)
2016-10-12T13:50:34.046148+00:00 app[web.1]: Started PATCH "/projects/3" for 86.145.234.60 at 2016-10-12 13:50:34 +0000
2016-10-12T13:50:34.053293+00:00 app[web.1]: Processing by ProjectsController#update as HTML
2016-10-12T13:50:34.053442+00:00 app[web.1]:   Parameters: {"utf8"=>"✓", "authenticity_token"=>"RMlb/xUnW6vt5tWL3lP8/BJhYKGJFe/PAw+JM1VkvyOzLLWAWQ6S2Se7WVWeM7tm6UBa9Dxg4BV1P1DWWz3d0A==", "project"=>{"name"=>"IPSR Mosaic", "configs_attributes"=>{"0"=>{"metric_name"=>"code_climate", "new"=>["", ""], "id"=>"11"}, "1"=>{"metric_name"=>"github", "options"=>["https://github.com/Pojostick/ipsr-mosaic"], "new"=>["url", "https://github.com/Pojostick/ipsr-mosaic"], "id"=>"12"}, "2"=>{"metric_name"=>"slack", "new"=>["", ""], "id"=>"13"}, "3"=>{"metric_name"=>"pivotal_tracker", "new"=>["", ""], "id"=>"14"}, "4"=>{"metric_name"=>"slack_trends", "new"=>["", ""], "id"=>"15"}}}, "commit"=>"Update Project", "id"=>"3"}
2016-10-12T13:50:34.136320+00:00 app[web.1]:   Project Load (7.1ms)  SELECT  "projects".* FROM "projects" WHERE "projects"."id" = $1 LIMIT 1  [["id", 3]]
2016-10-12T13:50:34.140387+00:00 app[web.1]:   Config Load (2.1ms)  SELECT "configs".* FROM "configs" WHERE "configs"."project_id" IN (3)
2016-10-12T13:50:34.223553+00:00 app[web.1]: Completed 500 Internal Server Error in 170ms (ActiveRecord: 9.2ms)
2016-10-12T13:50:34.224612+00:00 app[web.1]: 
2016-10-12T13:50:34.224615+00:00 app[web.1]: NoMethodError (undefined method `merge!' for ["https://github.com/Pojostick/ipsr-mosaic"]:Array):
2016-10-12T13:50:34.224615+00:00 app[web.1]:   app/controllers/projects_controller.rb:86:in `block in project_params'
2016-10-12T13:50:34.224617+00:00 app[web.1]:   app/controllers/projects_controller.rb:83:in `project_params'
2016-10-12T13:50:34.224617+00:00 app[web.1]:   app/controllers/projects_controller.rb:47:in `update'
2016-10-12T13:50:34.224618+00:00 app[web.1]: 
2016-10-12T13:50:34.224618+00:00 app[web.1]: 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions