What have you found for these years?

2011-11-04

How to run Rails 2 on Ruby 1.9.3

I was complaining this on twitter, and ihower answered me.
(thank you so much! it saved me so much time)

Basically, just applied this pull request as a monkey patch in your
application, or you can see how I monkey patched this in rest-more:

# monkey patch from https://github.com/rails/rails/pull/3473
class MissingSourceFile < LoadError #:nodoc:
  REGEXPS = [
    [/^no such file to load -- (.+)$/i, 1],
    [/^Missing \w+ (file\s*)?([^\s]+.rb)$/i, 2],
    [/^Missing API definition file in (.+)$/i, 1],
    [/^cannot load such file -- (.+)$/i, 1]
  ]
end

This patch is so simple, simple enough that this shouldn't
break anything (except for some crazy hacks), and I don't think
Rails team should refuse to merge this simply because Rails 2
is considered frozen.



I am really so tired of Rails, and I don't feel Rails 3 is much better
regarding this kind of hacks. I still saw a lot of this error:

ActionView::Template::Error: A is not missing constant B!

This error didn't make any sense and it never pointed to the real place
where the constant was misspelled. Yes, misspelled.

I swear I would never use Rails in my "personal" projects.

Items which always makes me feel angry:
(still growing, and did I miss anything?)

* IE
* Rails
* Facebook

0 retries:

Post a Comment

Note: Only a member of this blog may post a comment.



All texts are licensed under CC Attribution 3.0