From 62095e866480cdc1a6f25566c2a94dc3be9bec6f Mon Sep 17 00:00:00 2001 From: Scott Maslar Date: Fri, 2 Dec 2016 17:12:16 -0600 Subject: [PATCH] Update associated record creation example While the example is probably the intended behavior it does not reflect the current request path. I've updated the example to more closely match the current experience. If one of the potential fixes like https://github.com/remiprev/her/pull/318 is found to be acceptable it would make sense to include an update to the READ.me to reflect the changes. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 45f7cde4..f5bc47cc 100644 --- a/README.md +++ b/README.md @@ -397,8 +397,8 @@ You can use the association methods to build new objects and save them. @user.comments.build(body: "Just a draft") # => [#] -@user.comments.create(body: "Hello world.") -# POST "/users/1/comments" with `body=Hello+world.` +@user.comments.create(body: "Hello world.", user_id: 1) +# POST "/comments" with `body=Hello+world.&user_id=1` # => [#] ```