There’s a couple of gotchas because of YAML formatting and helper file loading. They’re covered here:
http://scottiestech.info/2012/02/07/make-rails-2-3-x-happy-with-ruby-1-9-3/ You’ll be forced to consider your encoding, but it’s always good to be across that anyway. Hugh On Wed, Feb 29, 2012 at 5:21 PM, Andrew Snow <[email protected]> wrote: > On 29/02/12 16:18, James Ladd wrote: >> >> Anyone know if it is possible to reliably run Rails 2.3.14 on Ruby 1.9.3? > > > Just finished a project to upgrade from 1.8.7 to 1.9.3. We also took the > chance to switch to using Bundler. It took much longer than expected and > caused issues in many areas of the application. So if doing it again, I > would do several seperate steps and have a working app in between each step: > Move to bundler first, then upgrade your gems, then finally upgrade ruby. > > Once we solved all of these problems, everything runs smoothly now. > > Some of the problems that come to mind: > > - Old gems need upgrading: eg. mysql has to be upgraded to mysql2. > Passenger must be the very latest version, and a bunch of others. > > - Unicode issues: Previously everything was assumed to be ASCII, now we > were forced to migrate DB tables to UTF8, and force ruby to read and write > files in UTF8 format. We also have to set the default encoding for view > templates to UTF8. > > - Code file paths: Autoloading paths need to be explicit. Relative paths > must be converted to absolute for EVERY require and script. Every > controller must have a helper with the correct filename. > > - Changes in language: just a bunch of little things, like case/when format > changing, missing String#to_a, missing Object#id. The default YAML engine > needed changing back to syck to ensure backwards compatibility with > serialised data. > > > Best of luck and I hope you have good test coverage :-) > > > - Andrew > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
