diff --git a/app/controllers/api/v1/reservations_controller.rb b/app/controllers/api/v1/reservations_controller.rb index 3382350..3ba0360 100644 --- a/app/controllers/api/v1/reservations_controller.rb +++ b/app/controllers/api/v1/reservations_controller.rb @@ -48,6 +48,6 @@ def set_reservation # Only allow a list of trusted parameters through. def reservation_params params.require(:reservation).permit(:reserved_date, :start_time, :end_time, :total_cost, :start_location, - :destination, :user_id, :aeroplane_id) + :destination, :user_id, :aeroplane_id, :name) end end diff --git a/app/controllers/reservations_controller.rb b/app/controllers/reservations_controller.rb index 37b980a..6f43c94 100644 --- a/app/controllers/reservations_controller.rb +++ b/app/controllers/reservations_controller.rb @@ -48,6 +48,6 @@ def set_reservation # Only allow a list of trusted parameters through. def reservation_params params.require(:reservation).permit(:reserved_date, :start_time, :end_time, :total_cost, :start_location, - :destination, :user_id, :aeroplane_id) + :destination, :user_id, :aeroplane_id, :name) end end