upgrade to Rails 4.0.0
simplify code to match the code in the tubesock README