Why can you call permit on the return value of require for rail's params?

后端 未结 0 429
鱼传尺愫
鱼传尺愫 2020-12-02 06:32

I\'m learning rails and came across this line:

params.require(:user).permit(:email, :password, :password_confirmation)

Looking at the source

相关标签:
回答
  • 消灭零回复
提交回复
热议问题