app/controllers/incomes_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 income_params
      params.require(:income).permit(
        :income_type_id,
        :amount
        )
    end
def income_params params . require ( :income ) . permit ( :income_type_id , :amount ) end
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .