Upgraded to rails 4.0.0rc1 and added pagination