知易行难

Community Engine on Rails 2.1.1

Sep 11, 2008

Tags

Rails 2.1.1 moved module Dependencies to ActiveSupport::Dependencies. That made Community Engine fail to start on Rails 2.1.1 (it’s actually Rails Engines that fails to start). You’ll get this error:

Dependencies is not a module (TypeError) 

To let Community Engine run, edit line 143 of vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:

Change

module ::Dependencies 

to

module ActiveSupport::Dependencies

5 Comments

  1. Syte Sijbrandij
    Sep 12 08, 9:00 pm

    Works like a charm, thank you for the post James!

  2. Andreas
    Oct 25 08, 11:49 am

    Very useful. Thanks.

  3. James
    Oct 31 08, 6:43 pm

    This has been fixed in the main plugin - apologies!

  4. Sugam
    Nov 10 08, 3:35 pm

    Worked like a charm! James, I just downloaded the latest copy of the plugin for 2.1.0, wasnt fixed in there :-/

  5. ashchan
    Nov 10 08, 6:01 pm

    @Sugam, as James said, the 2.1.0 has fixed this (I didn’t send him a patch when I first found this issue because the problem was caused by rails changing api and Engines might need to support old versions of rails).

Leave a Reply

Archives: Monthly or