Running Rails 2.3.14 on Ruby 1.9.2

While trying to run Rails 2.3.14 on Ruby 1.9.2, I was getting an error page with

ActionView::TemplateError (invalid byte sequence in US-ASCII)

Turns out Rails 2.3.14 on Ruby 1.9.2 was trying to read my UTF-8 data as US-ASCII.


Don’t use Ruby 1.9.2. I’m serious. Use Ruby 1.8.7 (I use ree 1.8.7). Works fine. You can use a newer Ruby when you switch to Rails 3+. To keep track of your Ruby and Gem versions, use RVM. Be sure to check out rvm wrapper!

You’re welcome. :)

This entry was posted in fixes and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>