app/controllers/residences_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 residence_params
      params.require(:residence).permit(
        :applicant_id,
        :address_id,
        :start,
        :end,
        :reason,
        :landlord_id,
        address_attributes: [ :street, :apt, :city, :state, :zip, :id ],
        landlord_attributes: [ :first_name, :middle_name, :last_name,
          :cell_phone, :home_phone, :work_phone, :email, :id ] )
    end
def residence_params params . require ( :residence ) . permit ( :applicant_id , :address_id , :start , :end , :reason , :landlord_id , address_attributes : [ :street , :apt , :city , :state , :zip , :id ] , landlord_attributes : [ :first_name , :middle_name , :last_name , :cell_phone , :home_phone , :work_phone , :email , :id ] ) end
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .