Last active
December 17, 2015 02:29
-
-
Save spacegauch0/5536115 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Started PUT "/manager/projects/1" for 127.0.0.1 at 2013-05-07 19:32:00 -0300 | |
| Processing by Manager::ProjectsController#update as HTML | |
| Parameters: {"utf8"=>"✓", "authenticity_token"=>"chEAfffsI3HcHlPqBn0LfQxIO/V7DhXj6wQ2j3jSIi8=", "project"=>{"milestones_attributes"=>{"0"=>{"pages"=>"1", "budget"=>"2", "development_cost_amount"=>"3", "developer_id"=>"1", "is_completed"=>"1", "is_delivered"=>"0"}}}, "commit"=>"Save", "id"=>"1"} | |
| Project Load (0.3ms) SELECT `projects`.* FROM `projects` WHERE `projects`.`id` = 1 LIMIT 1 | |
| (0.1ms) BEGIN | |
| SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-05-07 22:32:00', 'project.update', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'Project', '2013-05-07 22:32:00') | |
| SQL (5.9ms) INSERT INTO `project_milestones` (`budget`, `created_at`, `developer_id`, `development_cost_amount`, `is_completed`, `is_delivered`, `pages`, `project_id`, `updated_at`) VALUES (2, '2013-05-07 22:32:00', 1, 3, 1, 0, 1, 1, '2013-05-07 22:32:00') | |
| (8.5ms) COMMIT | |
| Redirected to http://0.0.0.0:3000/manager/projects/1 | |
| Completed 302 Found in 24ms (ActiveRecord: 0.0ms) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why if I'm sending this:
"project_milestone"=>{"pages"=>"10", "budget"=>"10", "development_cost_amount"=>"10", "developer_id"=>"1", "is_completed"=>"0", "is_delivered"=>"0"}, "commit"=>"Save", "project_id"=>"2"}
It gets saved as:
INSERT INTO
project_milestones(budget,created_at,developer_id,development_cost_amount,is_completed,is_delivered,pages,project_id,updated_at) VALUES (NULL, '2013-05-07 21:05:34', NULL, NULL, NULL, NULL, NULL, 2, '2013-05-07 21:05:34')