Anybody know if the changes coming to Rails 3 that affect ActiveRecord
can be applied to Rails 2.x projects as well? If it’s just the
ActiveRecord gem that’s changing, then we should be able to use the
new ActiveRecord gem with Rails 2 apps, right?
No, this isn’t possible. Why? ActiveRecord in Rails 3 is dependent on
other Rails 3.0 gems. For example, AR in Rails 3 depends on the
As an exercise for yourself, you can use the above to navigate the entire
dependency graph and it should be clear why your approach wouldn’t be a
good idea. Furthermore, you can compare the dependency graph for both
Rails 2.3.5 and Rails 3.0.0 beta:
(I ask because I’ve had trouble trying it out myself; installing the
Rails 3 beta gems somehow hosed my ability to create rails 2.x apps,
so until I straighten that out, I’m hoping someone might have seen
some news/insight that I haven’t come across yet.)
Please post your issue(s) here with sufficient detail and the community
will attempt to assist you.