I did not find information on the TSA website that states you can take a foam bed rail in your carry-on. However, you must check a foam toy sword, and foam toy blocks can be in a carry-on bag. To be safe, I suggest packing them in your checked luggage, or if you have a car seat bag with extra room, you can slip them in it.