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 |
AD:
No Comments, Comment or Ping
Reply to “RailsでSaveにIDを指定して保存”
Warning: Undefined variable $user_ID in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/themes/grid_focus_public_mizo/comments.php on line 66
You must be logged in to post a comment.