We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7af6748 + 62095e8 commit 51752b0Copy full SHA for 51752b0
README.md
@@ -415,8 +415,8 @@ You can use the association methods to build new objects and save them.
415
@user.comments.build(body: "Just a draft")
416
# => [#<Comment body="Just a draft" user_id=1>]
417
418
-@user.comments.create(body: "Hello world.")
419
-# 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`
420
# => [#<Comment id=3 body="Hello world." user_id=1>]
421
```
422
0 commit comments