Skip to content

Instantly share code, notes, and snippets.

@yu-smc
Created July 8, 2018 08:19
Show Gist options
  • Save yu-smc/e84f87ab6f7e49a4b2000eb336efefac to your computer and use it in GitHub Desktop.
Save yu-smc/e84f87ab6f7e49a4b2000eb336efefac to your computer and use it in GitHub Desktop.
どはまり
[2] pry(#<PrototypesController>)> @prototype.captured_images
CapturedImage Load (0.6ms) SELECT `captured_images`.* FROM `captured_images` WHERE `captured_images`.`prototype_id` = 5
=> [#<CapturedImage:0x007ffaa7ab15b8
id: 8,
content: "b2_02.jpg",
status: 0,
prototype_id: 5,
order: 0>,
#<CapturedImage:0x007ffaa7ab13d8
id: 9,
content: "C5_01.jpg",
status: 1,
prototype_id: 5,
order: 1>,
#<CapturedImage:0x007ffaa7ab1298
id: 10,
content: "slide-image_2.jpg",
status: 1,
prototype_id: 5,
order: 2>]
[3] pry(#<PrototypesController>)> params
=> {"utf8"=>"✓",
"_method"=>"patch",
"authenticity_token"=>
"laWsSdiCCKJSzCbDmWFqK0ajWzWl3XekhHupRljDHmEEzAOHI8obBr+qb5dFmLJY+P+N9I0YQMIwmLpxWUSPaA==",
"prototype"=>
{"user_id"=>"1",
"title"=>"'j;bhlvjgkh",
"captured_images_attributes"=>
{"0"=>
{"status"=>"main", "order"=>"0", "id"=>"8"},
"1"=>
{"status"=>"main", "order"=>"0", "id"=>"9"},
"2"=>
{"status"=>"main",
"order"=>"0",
"id"=>"10"},
"3"=>
{"status"=>"sub", "order"=>"1", "id"=>"8"},
"4"=>
{"status"=>"sub", "order"=>"1", "id"=>"9"},
"5"=>
{"status"=>"sub", "order"=>"1", "id"=>"10"},
"6"=>
{"status"=>"sub", "order"=>"2", "id"=>"8"},
"7"=>
{"status"=>"sub", "order"=>"2", "id"=>"9"},
"8"=>
{"status"=>"sub", "order"=>"2", "id"=>"10"},
"9"=>
{"status"=>"sub", "order"=>"3", "id"=>"8"},
"10"=>
{"status"=>"sub", "order"=>"3", "id"=>"9"},
"11"=>
{"status"=>"sub",
"order"=>"3",
"id"=>"10"}},
"catch_copy"=>"ljk.hj",
"concept"=>"klnjkbhl vm"},
"commit"=>"SAVE",
"controller"=>"prototypes",
"action"=>"update",
"id"=>"5"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment