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` # => [#] ```