Adopt to Rails4.

I've tested using Rails4.0.0 on Windows8 RailsInstaller.