Find and fix the leak first, than dry out the floor boards, remove lose rust, and coat with rust encapsulating coating such as POR-15 on rusted surfaces only. This will stop further corrosion of floor metal, moisture proof the surface, and provide a good clean attachment surface for installing...