Downgrade Rails to 4.0.5 to fix issue with will_paginate and count.

https://github.com/mislav/will_paginate/pull/372