Quiz Yourself: Improve Order Placement
Test your knowledge of the Placement model and validators.
1
How do we permit an array of scalar values like {foo: [{bar: 1}, {bar: 2}] }
in the controller?
A)
params.permit(foo: [])
B)
params.permit(foo: [:bar])
C)
params.require(:foo).permit(:bar)
Question 1 of 30 attempted
Get hands-on with 1400+ tech skills courses.