added pagination with kaminari, and better_errors for dev