title: Rails production asset pipeline inserting random string into file name in the wrong place
body: <p>I tried my hardest to search for this issue, but had no idea how to describe it let alone search for it, so I figured I would post what I have and if it's a duplicate someone will let me know. Been a long time SO reader, but never asked my own question before so this is exciting for me :)</p>
  
  <p>So on a typical Rails production environment (Rails 3.2 + Ruby 1.9.3) the asset pipeline will add a random string of numbers and letters to asset file names, so application.css becomes something like application-2df8ae4bac143d750f200d4768826126.css</p>
  
  <p>Well, a few images are having an issue in production where the file names are being incorrectly modified. This is only happening on the active buttons for some reason. For example, if I have button.jpg for initial and once clicked it becomes button-2df8ae4bac143d750f-hover.jpg when the original is button-hover.jpg so I'm guessing maybe something to do with precompiling? Any help would be GREATLY appreciated and also sorry in advance if this is a duplicate post.</p>