|20070251010||Massage table||November, 2007||Lara|
|20050262633||Adjustable blanket||December, 2005||Haleem|
|20050108824||Diaper changing apparatus and methods of changing a baby's diaper||May, 2005||Rosenberg|
|20080028529||COMBINATION TRAVEL PILLOW/PILLOW ENHANCER||February, 2008||Abell|
|20070067916||Integrated Mattress Encasings and Apparatuses and Methods to Encase Mattress Topper||March, 2007||Poston|
|20050036715||Thermally insulating activity mat bag||February, 2005||Delaney|
|20020178502||Adjustable platform for a bed||December, 2002||Beasley et al.|
|20050235417||Knock down bed foundation||October, 2005||Koughan et al.|
|20080276370||Trolley For Transporting a Patient and a Patient Handling System||November, 2008||Van Es et al.|
|20070220673||CLOTHING ARTICLES HAVING RAISED PROJECTIONS||September, 2007||Nichols|
|20050091744||Magnetically levitated rocking sleep system||May, 2005||Mayyak|
 The present invention relates to a rail device which has a frame inserted below the mattress and the bars of the rail device can be folded to be a compact assembly.
 A conventional playpen is used to let a baby sleep or crawl therein so that it has a bottom and four side rails. The side rails are cooperated with fabrics so that the baby can not crawl over the side rails and is safe in the playpen. When the baby grows, the playpen is small for the baby so that the adults could put the baby on a bed and keep an eye on the baby who is vigorous and tries to crawl out from the bed. It is necessary to have a rail device that can be connected to a side of the bed so that the baby cannot crawl out from the bed. However, the conventional rail device involves a complicated structure and a lot of parts. The size of the conventional rail device is so huge that the mother of the baby feels inconvenient to install or removed the rail device from the bed.
 In accordance with one aspect of the present invention, there is provided a rail device which comprises a U-shaped frame having two ends thereof respectively connected to two respective connection devices. Each of the connection devices has a first plate and a second plate between which a first tube is pivotally connected. Each of the first plate and the second plate has a notch defined therein. A first transverse bar is pivotally connected between the two second plates of the two connection devices, and a second transverse bar is pivotally connected between the two first tubes. Each of the first tubes has a first pin extending therethrough and two aligned slots defined through a wall of each of the first tubes. A spring is received in each of the first tubes and a first end of the spring contacts the first pin and a second end of the spring is engaged with a stop member. A second pin extends through the stop member and two ends of the second pin movably extend through the two slots in each of the first tubes. The two ends of the second pin are engaged with the two notches in the first plate and the second plate.
 The primary object of the present invention is to provide a rail device that can be easily folded and is installed with or disengaged from the bed.
 The present invention will become more obvious from the following description when taken in connection with the accompanying drawings which show, for purposes of illustration only, a preferred embodiment in accordance with the present invention.
 Referring to FIGS.
 Each of the first tubes
 A second transverse bar
 While we have shown and described the embodiment in accordance with the present invention, it should be clear to those skilled in the art that further embodiments may be made without departing from the scope of the present invention.