LINWOOD — A day after the council in Atlantic City voted to ban the sale of realistic toy guns, a student in a nearby town was arrested for bringing a fake firearm to school.

The 15-year-old boy was arrested Wednesday at Mainland High School after school officials got word there was an object resembling a gun in his backpack, according to a report on PressofAtlanticCity.com.

The boy, a resident of Somers Point, was charged with possession of an imitation firearm in an educational setting, the report said.

On Wednesday evening, the Atlantic City council unanimously passed an ordinance that would ban the sale or possession of imitation guns. Exceptions were made for toy weapons that are bright, florescent or transparent.

Pistols that contain metal caps will also become illegal, but non-firing antiques and film prop guns are still OK in Atlantic City.