Quiz Yourself: Improve Order Placement
Test your knowledge of the Placement model and validators.
We'll cover the following...
We'll cover the following...
Technical Quiz
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)
1 / 3