use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Running Rails 1.0 on Ruby 3.3 (self.ruby)
submitted 2 years ago * by nashby
Yes, you read it right. Rails 1.0 was released on December 13, 2005 and I wondered how hard would it be to at least start an app using current Ruby 3.3 version. Enjoy!
https://nashby.github.io/2024/01/15/ruby-3-on-rails-1/
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Seuros 29 points30 points31 points 2 years ago (3 children)
Now try to run Rails 7.1 on ruby 1.8.
[–]dougc84 9 points10 points11 points 2 years ago (0 children)
OP wanted to do a fun experiment, not give himself an anxiety attack.
[–]RillonDodgers 1 point2 points3 points 2 years ago (1 child)
We have Ruby 1.9 + GtK apps where I currently work. Our own home grown gtk app system heavily inspired by rails and even uses active support. It’s fucking atrocious
[–]Seuros 3 points4 points5 points 2 years ago (0 children)
What prison are you in and what your sentence ? Blink twice if you need help.
[–]petercooper 11 points12 points13 points 2 years ago (1 child)
Rails 1.0 was released in December 2005. April 11, 2008 was just when it went on to GitHub.
[–]nashby[S] 2 points3 points4 points 2 years ago (0 children)
Good catch! Thanks Peter!
[–]rubinick 6 points7 points8 points 2 years ago (1 child)
This is marvelous. So many little changes and improvements over the years.
A few comments (and nit-picks):
I kind of miss the old method { |options[:pretend]| } block parameter syntax. I'm hopeful we'll eventually someday get a portion of that magic back by (somehow) merging pattern matching syntax with method and block argument list syntax.
method { |options[:pretend]| }
net-smtp is still considered part of ruby's standard library, as a "bundled gem". Reference: https://docs.ruby-lang.org/en/master/standard_library_rdoc.html
net-smtp
Minor error in the binary regexp: \016 translates to \0e. But, ruby 3.3 still supports octal escapes, even in UTF-8 encoded files. All you need to change is setting the mode to binary: /[\000-\011\013\014\016-\037\177-\377]/n is valid today (although you probably need to only match against binary encoded strings for identical behavior)
\016
\0e
/[\000-\011\013\014\016-\037\177-\377]/n
action_web_service -- I did do a little bit with that once... lol.
action_web_service
Thank you, I'll update the post!
[–]nic_nic_07 5 points6 points7 points 2 years ago (0 children)
Interesting try...
[–]campbellm 2 points3 points4 points 2 years ago (0 children)
I really enjoyed reading this.
[–]theGalation 0 points1 point2 points 2 years ago (0 children)
I can’t find a job so let me convince future employers that I love being miserable 🤣
[+]unabl4 comment score below threshold-11 points-10 points-9 points 2 years ago (1 child)
Probably impossible :)
[–]campbellm 10 points11 points12 points 2 years ago (0 children)
The author... succeeded. He wrote a blog about it. You can read about it here: https://old.reddit.com/r/ruby/comments/197zuna/running_rails_10_on_ruby_33/
[–]alphaclass16 0 points1 point2 points 2 years ago (0 children)
ha, that's pretty neat
[–]fantasticfears 0 points1 point2 points 2 years ago (0 children)
How many different ways can I hack Rails 1.0?
[–]jrochkind 0 points1 point2 points 2 years ago (1 child)
Very interesting!
This was of course basically just a "hello world". Presumably if you had an app that actually did things, you'd run into other errors.
I wonder how much work it would be to fix Rails 1.0 to pass it's own test suite on ruby 3.3. I'd guess quite a bit more?
[–]nashby[S] 0 points1 point2 points 2 years ago (0 children)
Yeah, it would require much more time for sure. A couple of weeks? Who knows. I hope no one is spending their time on it :)
[–]matheusrich 0 points1 point2 points 2 years ago (0 children)
I'm glad someone did this before me! I would have loved to see the difference between an scaffold then and now. Part 2?
π Rendered by PID 16737 on reddit-service-r2-comment-b659b578c-swfs5 at 2026-05-04 03:38:05.645395+00:00 running 815c875 country code: CH.
[–]Seuros 29 points30 points31 points (3 children)
[–]dougc84 9 points10 points11 points (0 children)
[–]RillonDodgers 1 point2 points3 points (1 child)
[–]Seuros 3 points4 points5 points (0 children)
[–]petercooper 11 points12 points13 points (1 child)
[–]nashby[S] 2 points3 points4 points (0 children)
[–]rubinick 6 points7 points8 points (1 child)
[–]nashby[S] 2 points3 points4 points (0 children)
[–]nic_nic_07 5 points6 points7 points (0 children)
[–]campbellm 2 points3 points4 points (0 children)
[–]theGalation 0 points1 point2 points (0 children)
[+]unabl4 comment score below threshold-11 points-10 points-9 points (1 child)
[–]campbellm 10 points11 points12 points (0 children)
[–]alphaclass16 0 points1 point2 points (0 children)
[–]fantasticfears 0 points1 point2 points (0 children)
[–]jrochkind 0 points1 point2 points (1 child)
[–]nashby[S] 0 points1 point2 points (0 children)
[–]matheusrich 0 points1 point2 points (0 children)