Updated for Rails 4.0.2

I did a quick update to adjust this to rail ties as issue #1