MΓ³dulo 11 Β· Bookings: The Core API β LecciΓ³n 3 de 5 Β· ~11 min
Create: Never Trust the Client with Money
Strong params that leave money OUT
Module 08 built the mass-assignment story: a .permit allowlist stops a client from sneaking an unexpected key β like admin: true β into a create! call. Booking's version of that allowlist has a second job, more important than blocking an attack: it makes sure the client was never GIVEN the chance to set the two fields that decide what actually happens to a booking.