An ordinance to ban smoking throughout the resort city of Laguna Beach was passed last week by its City Council, and will go into effect in about 30 days.