aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrailties/bin/rails9
1 files changed, 8 insertions, 1 deletions
diff --git a/railties/bin/rails b/railties/bin/rails
index 54417750b3..7e66672b33 100755
--- a/railties/bin/rails
+++ b/railties/bin/rails
@@ -1,6 +1,13 @@
min_release = "1.8.2 (2004-12-25)"
ruby_release = "#{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
-if ruby_release < min_release
+if ruby_release =~ /1\.8\.3/
+ abort <<-end_message
+
+ Rails does not work with Ruby version 1.8.3.
+ Please upgrade to version 1.8.4 or downgrade to 1.8.2.
+
+ end_message
+elsif ruby_release < min_release
abort <<-end_message
Rails requires Ruby version #{min_release} or later.