Using rails 4.0.5 as suggested by @invisiblefunnel