Console Output
Started POST "/documents" for 127.0.0.1 at 2013-03-15 19:17:12 +0530
Processing by DocumentsController#create as HTML
Parameters: {"utf8"=>"✓",
"authenticity_token"=>"fvjouziWyDPCsTIJQvguXG1vvAIGy8ej5hR+69TTeIQ=",
"document"=>{"name"=>"sample", "sections_attributes"=>{"0"=>{"name"=>"one",
"content_ids"=>["1", "2"]}}}, "commit"=>"submit"}
Content Load (0.0ms) SELECT `contents`.* FROM `contents` WHERE
`contents`.`id` IN (1, 2)
SQL (0.1ms) BEGIN
SQL (0.0ms) COMMIT
SQL (0.0ms) BEGIN
SQL (0.3ms) describe `documents`
AREL (0.1ms) INSERT INTO `documents` (`name`, `created_at`,
`updated_at`) VALUES ('sample', '2013-03-15 13:47:12', '2013-03-15
13:47:12')
SQL (0.3ms) describe `sections`
AREL (0.1ms) INSERT INTO `sections` (`name`, `document_id`,
`created_at`, `updated_at`) VALUES ('one', 2, '2013-03-15 13:47:12',
'2013-03-15 13:47:12')
Section Load (0.3ms) SELECT `sections`.* FROM `sections` WHERE
`sections`.`id` = 3 LIMIT 1
Content Load (0.1ms) SELECT `contents`.* FROM `contents` WHERE
`contents`.`id` = 1 LIMIT 1
SQL (72.5ms) ROLLBACK
Content Load (0.1ms) SELECT `contents`.* FROM `contents`
Rendered documents/_form.html.erb (4.8ms)
Rendered documents/new.html.erb within layouts/application (8.7ms)
Started POST "/documents/2" for 127.0.0.1 at 2013-03-15 19:17:48 +0530
Processing by DocumentsController#update as HTML
Parameters: {"utf8"=>"✓",
"authenticity_token"=>"fvjouziWyDPCsTIJQvguXG1vvAIGy8ej5hR+69TTeIQ=",
"document"=>{"name"=>"sample", "sections_attributes"=>{"0"=>{"name"=>"one",
"content_ids"=>["1", "2"]}}}, "commit"=>"submit", "id"=>"2"}
Document Load (0.2ms) SELECT `documents`.* FROM `documents` WHERE
`documents`.`id` = 2 LIMIT 1
Completed 404 Not Found in 10ms
ActiveRecord::RecordNotFound (Couldn't find Document with ID=2):
app/controllers/documents_controller.rb:30:in `update'
--
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/msg/rubyonrails-talk/-/DeuptnFweogJ.
For more options, visit https://groups.google.com/groups/opt_out.