Hello I'm quite new to rails API. I'm having trouble on how can I access the :guest object from the params. What I want to to do is to create a new record in Booking and Guest. Thank you.

Booking Controller

```

attr_accessor :guest 

def create
    booking = Booking.new(reservation_params)
    booking.guest.build({booking_id: booking.id, first_name: ?, last_name: ?})
end

def reservation_params
    params.require(:booking).permit(:start_date, :end_date :guest => [:first_name, :last_name])
end

```

POST

```
{
    "start_date": "2021-03-12",
    "end_date": "2021-03-16",
    "guest": {
            "first_name": "John",
            "last_name": "Doe",
    }
} 

```