Fixing rails dependency to avoid ruby clash when using 1.8