RailsでSaveにIDを指定して保存
Mar 24, 2015AD:
1 2 3 |
Post.new(title: "Title is here",body: "Body is here") Post.id = 1000 Post.save |
ちなみにこれじゃダメだった
1 2 |
Post.new(id: 1000, title: "Title is here",body: "Body is here") Post.save |
Related posts
AD:
No Comments, Comment or Ping
Reply to “RailsでSaveにIDを指定して保存”
You must be logged in to post a comment.