in the following description , like reference characters designate like or corresponding parts throughout the several views . also in the following description , it is to be understood that such terms as “ forward ,” “ rearward ,” “ left ,” “ right ,” “ up ,” “ down ,” and the like are words of convenience and are not to be construed as limiting terms . referring now to the drawings , it will be understood that the illustrations are for the purpose of describing a preferred embodiment of the invention and are not intended to limit the invention thereto . as best seen in fig1 a and 1b , an apparatus for mounting a hookplate to a bedrail , generally designated 10 , is shown constructed according to the present invention . the apparatus includes an assembly line 12 that moves a plurality of bedrails 14 into a position to receive a hookplate 16 on either one or both ends of each of the bedrails 14 . in a preferred embodiment , pusher dogs 18 pivot on a bar 70 that reciprocates back and forth to move the bedrails 14 down the assembly line 12 . as shown in fig1 c , the pusher dogs 18 rotate upwardly when the bar 70 moves in the direction of the assembly line 12 to index the bedrails 14 . as shown in fig1 d , the pusher dogs 18 rotate downwardly when the bar 70 moves backwards to slide under the previously indexed bedrail 14 and prepare to index the next bedrail 14 on the assembly line 12 . conventional bedrails 14 include a hookplate 16 mounted on both ends of the bedrail 14 so that the bedrail 14 can engage a post in both a headboard and a footboard . thus , in the embodiment illustrated in fig1 a and 1b , a hookplate mounting section 21 is located on either side of the apparatus 10 to mount a hookplate 16 on both ends of the bedrail 14 . while the following description of the mounting machinery refers to only one side of the apparatus 10 , it will be understood that the same description applies to the machinery on the opposite side of the apparatus 10 , laid out generally as a mirror image . once the bedrail 14 is located in a position to receive a hookplate 16 , a pressure foot 66 ( shown in detail in fig6 ) extends down to hold the bedrail 14 in position . turning now to fig2 a and 2b , there is shown a hookplate hopper 20 that stores a plurality of hookplates 16 waiting to be mounted onto the bedrails 14 on the assembly line 12 . the hopper 20 is preferably located slightly above a hookplate mounting surface 22 such that that the height between then the bottom of the hopper 20 and the mounting surface 22 is substantially equal to the thickness of one hookplate 16 . this configuration permits only one hookplate 16 at a time to rest between the hookplate mounting surface and the hopper 20 . a thin plate 24 , having a height that is also about the same height as the hookplate 16 , slides under the hopper 20 and pushes the bottom hookplate 16 , resting on the surface 22 , to a first position ( b of fig4 ). when the thin plate 24 retracts , the next bottom - most hookplate in the hopper 20 falls out of the hopper 20 by gravity and onto the hookplate mounting surface 22 so that it can mounted into the next bedrail 14 on the assembly line 12 . as shown in fig3 a , a second hookplate pusher 26 is configured to clamp onto the hookplate 16 after it is moved to the first position , and push the hookplate 16 to a hookplate mounting position . preferably , the second hookplate pusher 26 includes two finger - like clamps 28 that are configured to clamp down on the two hooks ( 51 , 54 of fig5 b ) of a conventional hookplate , such as hookplate 16 . it should be understood that the second hookplate pusher 26 may be adapted to clamp down on non - conventional hookplates 16 . for example , the second hookplate pusher 26 may include a single finger - like clamp 28 to clamp down on a hookplate 16 having only one hook . referring now to fig3 b and 3c , the finger - like clamps 28 are balanced on a fulcrum 30 so that they can rock up and down like a seesaw . when one end of the clamp 28 is pointed toward the hookplate mounting surface 22 , the other end is pointed away from the hookplate mounting surface 22 . when the second hookplate pusher 26 is idle , ( i . e . retracted to the right from the position shown in fig3 b ) one end ( 28 a ) of each of the finger - like clamps 28 is located under a roller 32 on a base 34 , as shown in fig3 c . the rollers 32 hold these ends ( 28 a ) of the fingers 28 down so that the opposite ends ( 28 b ) of the fingers 28 are open to receive the hookplate 16 from the thin plate pusher 24 . once the hookplate 16 is located in the first position and is ready to be clamped , the second hookplate pusher 26 moves away from the base 34 and towards the bedrail 14 . as soon as the ends ( 28 a ) of the fingers 28 slide from under the rollers 32 , springs 36 that are located under the ends ( 28 a ) of the fingers 28 extend to hold those ends ( 28 a ) of the fingers 28 in an upward position . this forces the opposite ends ( 28 b ) of the fingers 28 to clamp down on the hooks 51 , 54 of the hookplate 16 , as shown in fig3 b . the second hookplate pusher 26 then continues to push the hookplate 16 towards the hookplate mounting position . the various steps just described in which the apparatus 10 moves the hookplate 16 into hookplate mounting position , are illustrated in fig4 . in step a , the hookplate 16 drops from the hopper 20 and is moved by the thin plate 24 to the first position . in step b , the fingers 28 slide away from the rollers 32 and clamp onto the hookplate 16 . in step c , the second hookplate pusher 26 moves the hookplate 16 from the first position to the hookplate mounting position to form a bedrail and hookplate assembly . fig5 a and 5b illustrate the bedrail 14 and hookplate 16 assembly prior to being fastened by the pins 38 . although the hookplate 16 may be mounted on the side of the bedrail 14 , it is preferably mounted in a slot 60 extending into the end of the bedrail 14 . as discussed above , conventional hookplates , such as hookplate 16 , include a first downwardly extending hook 51 forming a first indentation and a second downwardly extending hook 54 forming a second indentation . a conventional hookplate 16 also includes first and second apertures 56 , 58 through which pins extend to fasten the hookplate 16 to the bedrail 14 . the apertures 56 , 58 are large enough to provide passage of the pin 38 and may be oversized and elongated to provide for a certain amount of play for the hookplate 16 . providing play in the hookplate 16 allows for slight adjustments in hookplate 16 orientation as the bedrail 14 is mounted to the headboard or footboard . the hookplate 16 position will normally adjust and conform to a secure location and orientation . providing oversized or elongated apertures 56 , 58 also allows for greater tolerances associated with the placement of the pins 38 , which ultimately engage and hold the hookplate 16 . prior to the bedrail 14 being placed on the assembly line 12 , two apertures or bores 62 , 64 are made near the end of the bedrail . preferably , the apertures 62 , 64 do not extend completely through the bedrail 14 , but rather extend from the one side past the slot 60 and into the other side of the bedrail 14 . a remaining portion 62 remains in order to provide an uninterrupted and unobstructed outer side of the bedrail 14 for aesthetics . thus , in the preferred embodiment , the pins 38 extend through the apertures 62 , 64 of the bedrail 14 and the apertures 56 , 58 of the hookplate 16 and stop just prior to reaching the remaining portion 62 . turning now to fig7 two pipes 50 extend upwardly from either side of a pin driving section 44 and are aligned with cylindrical openings 46 in a holding plate 42 . a cylindrical pin driver 52 having a chamfered bottom , is located inside each of the pipes 50 and is used to drive the pins 38 to mount the hookplate 16 to the bedrail 14 . the process of driving the pins 38 into the bedrail 14 and hookplate 16 involves several steps . first , the pressure foot 66 is released and the pin drivers 52 fully extend into the apertures 56 , 58 in the hookplate 16 and the apertures 62 , 64 in the bedrail 14 to slightly move any misaligned pieces into alignment . releasing the pressure foot 66 allows the bedrail 14 to move as needed to ensure alignment of the apertures 56 , 58 , 62 , 64 . such alignment avoids damage to the bedrail 14 and hookplate 16 during the pin insertion process . while the pin drivers are still inside the apertures 56 , 58 , 62 , 64 , the pressure foot 66 re - extends to hold the bedrail 14 in place during the pin insertion process . the pin drivers 52 then retract back into pipes 50 , to make room for the pins 38 that are used to fasten the hookplates 16 to the bedrail 14 . as shown in fig7 a pin supply chamber 36 that stores a plurality of pins 38 is preferably located above the hookplate mounting surface 22 . the pin supply chamber is configured to release two pins 38 at a time , one pin 38 for each aperture in the hookplate 16 . it should be understood that when mounting a hookplate 16 having only one aperture , the chamber 36 may be configured to drop only one pin 38 . when pins 38 are dropped from either side of the chamber 36 , the pins 38 fall by gravity through a pair of tubes 40 to the pin driving section 44 . the pin driving section 44 includes a holding plate 42 that temporarily holds the pins 38 below the pin drivers 52 before they are inserted into the hookplate 16 and the bedrail 14 . the holding plate 42 , as shown in fig8 a , is formed of two metal plates 42 a , 42 b that fit together to form a plate 42 having two cylindrical openings 46 . each of the cylindrical openings 46 in the holding plate 42 includes a set of spring - loaded detents 48 . the detents extend into the openings 46 to frictionally engage the pins 38 , as shown in fig8 b , thereby preventing the pins 38 from going through the holding plate 42 until they are ready to be driven into the bedrail and hookplate assembly . next , the pin drivers 52 drive the pins 38 past the detents 48 and almost completely through the bedrail 14 , stopping the pins 38 just prior to reaching the remaining portion 62 of the bedrail 14 . at this point , the hookplate 16 is securely fastened to the bedrail 14 and the mounting process is complete . the pressure foot 66 is released , the fingers 28 release the clamp on the hookplate 16 , and the pusher dogs 18 move the completed bedrail 14 and hookplate 16 assembly down the assembly line 12 . in each of the embodiments discussed above , the various components of the apparatus 10 are driven by pneumatic cylinders , which are known in the art . photoelectric and proximity sensors are used to detect the positions of the various cylinders and a programmable logic controller ( plc ) is used to control the cylinders based on their detected positions . for example , a photoelectric sensor may be used to determine when a bedrail and hookplate assembly is ready to be fastened so that a plc may direct the driving cylinders 78 to operate the pin drivers 52 to drive the pins 38 . a flow chart explaining a simplified operation of the cylinders is shown in fig9 . in step 90 , the pusher dogs 18 place a new bedrail 14 in the hookplate receiving position . in step 92 , a holding cylinder 76 ( shown in fig6 ) moves the pressure foot 66 to hold the bedrail 14 while the hookplate 16 is inserted . in step 94 , a first positioning cylinder 72 ( shown in fig2 a and 2b ) moves the thin plate 24 to push the hookplate 16 to the first position . in step 96 , a second positioning cylinder 74 ( shown in fig3 a and 3b ) moves the second hookplate pusher 26 away from the base 34 so that the fingers 28 clamp down on the hookplate 16 . in step 98 , the holding cylinder 76 retracts in preparation for the step that aligns the apertures in the hookplate and the bedrail . in step 100 , driving cylinders 78 ( shown in fig7 ) fully extend to drive the pin drivers 52 into the bedrail and hookplate assembly to ensure alignment of the apertures . in step 102 , the holding cylinder 76 re - extends to hold the bedrail 14 during the pin insertion process . in step 104 , the driving cylinders 78 retract the pin drivers 52 to prepare to insert the pins 38 . in step 106 , the driving cylinders 78 partially drive the pin drivers 52 to insert the pins 38 into the bedrail and hookplate assembly , thereby completing the pin insertion process . finally , in step 108 , the driving cylinders 78 , the holding cylinder 76 , the second positioning cylinder 74 , and the first positioning cylinder 72 retract to prepare to fasten the next bedrail and hookplate assembly . certain modifications and improvements will occur to those skilled in the art upon a reading of the foregoing description . by way of example , the apparatus 10 may be adapted to mount a hookplate 16 to only one end of a bedrail 14 . further , the apparatus 10 may be adapted to mount a hookplate 16 having only one hook or one aperture . in addition , the present invention may be driven by sources of power other than pneumatic cylinders . it should be understood that all such modifications and improvements have been deleted herein for the sake of conciseness and readability but are properly within the scope of the following claims .