A 9-year-old student in New Mexico gave fellow students gummies — only to realize later they were not ordinary candies.

The candies had apparently been laced with tetrahydrocannabinol, or THC, the chemical responsible for how marijuana affects the brain, and were being used by the student's parents as medical marijuana. Kristi Del Curto, dean of elementary students at Albuquerque School of Excellence, told the Albuquerque Journal the fifth-grader brought the box of gummies she found at home and shared with friends at the school cafeteria one morning.

"She thought she was sharing candy, and if you saw the picture on the box, it did look like candy," Del Curto told the paper.

The student later felt dizzy during class and was sent to the school nurse. After school officials determined the fifth-grader had eaten THC-laced gummies, students were asked over the school's public address system who else had the candies, the paper reported. Del Curto said five other students had gummies. Some did not seem to have been affected, and some others were "giggly," she said. The student who brought the candies felt ill after eating five.

One student told KRQE News 13 she immediately realized they were not ordinary candies after she ate one and started feeling dizzy. Paramedics were later called to check on the students.

School officials informed parents of the incident, which happened a little more than a week ago, according to the school's Facebook page.

"We would like to remind all students and parents to be cautious about food/drink sharing ... and we would like our community to be alert with drugs and any edibles that may or could be in different formats," the school wrote. "We kindly ask our parents and community members not to talk explicitly about drugs/medicine when students are present."

Twenty-nine states or territories, including the District of Columbia, Guam and Puerto Rico, allow the use of marijuana for medical purposes. New Mexico became the 12th state to allow medical cannabis in 2007.

Eight states and D.C. have legalized recreational use of marijuana, but New Mexico is not one of them.

Edibles, or food products laced with cannabis extract, have become a popular way to sell marijuana, and many are sold online, though interstate transport is illegal. In Colorado, for example, edibles accounted for 45 percent of all cannabis sales, according to a paper published in the U.S. National Library of Medicine.

Edibles come in different forms, such as candies, gummies, chocolates, baked goods and beverages. They are largely considered a safer way to consume marijuana because they do not pose the harmful risks of smoking, though little research is available on how effective edibles are compared with other methods of ingestion. Edible products also account for majority of hospital visits, likely because users who do not realize the delayed effects consume higher-than-recommended amounts, the paper says.