Changes Rails version to 2.3.18 and downgrade gem version