0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Railsクイズ 初心者向け

Posted at

ルール

全5問
1問あたり15秒で答える!
paramsは {name: 'なまえ'}

答えは最後にまとめて

第1問

できる? できない?

user = User.new()
user.create(params)

第2問

できる? できない?

user = User.new()
user.update(params)

第3問

できる? できない?

user = User.new()
user.save(params)

第4問

返り値は?
インスタンス? boolean?

User.create!(name: 'namae')

第5問

返り値は?
インスタンス? boolean?

user = User.create()
user.update!(name: 'namae')

 
 
 
 
 
 
 

 
 
 
 

感想

チームメンバーに出題してみて意外と面白かったです
何問正解できましたか? 

答え

  1. できない
  2. できる
  3. できない
  4. インスタンス
  5. boolean
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?