backend/app/controllers/kitchens_controller.rb
# Only allow a trusted parameter "white list" through.
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .
def kitchen_params
        params.require(:kitchen).permit(:username, :description, :location, :food_type,
                                        menu_attributes: [:id, :date, :kitchen_id,
                                        foods_attributes: %i[id name description price img_src availability menu_id _destroy]])
        end
def kitchen_params params . require ( :kitchen ) . permit ( :username , :description , :location , :food_type , menu_attributes : [ :id , :date , :kitchen_id , foods_attributes : %i[ id name description price img_src availability menu_id _destroy ] ] ) end
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .