Hi I am having the same problem with @@default_error_messages.

I followed all instructions here: 
http://github.com/bborn/communityengine/tree/master

I get the @@default_error_messages during the command 'script/plugin
generate plugin_migration'.  I a @@default_error_messages that is
similar when I try to run rake db:migrate.

I have rails 2.2.2 installed and community engine is the latest from
github.

I tried to follow your instructions of using git checkout -b new 2.1.0
with no success.  I tried to change this to 2.2.2 to match the version
of rails I was running...  that didn't work either.

below is the complete error output:
/home/kh/community/vendor/plugins/community_engine/engine_plugins/
globalite/lib/rails/localized_ac                      tive_record.rb:
5: uninitialized class variable @@default_error_messages in
ActiveRecord::Errors (NameError                      )
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:153:in `re                      quire'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:521:in `ne
w_constants_in'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:153:in `re                      quire'
        from /home/kirkhoward/community/vendor/plugins/
community_engine/engine_plugins/globalite/lib/
globa                      lite.rb:19
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
         ... 19 levels...
        from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/
generate.rb:1
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
        from script/generate:3



Any suggestions?


On Dec 17, 4:03 pm, Santiago Pastorino <[email protected]> wrote:
> You have to move to 2.1.0 branch of rails engines:
>
>   Install engines with git:
>     git clone git://github.com/lazyatom/engines.git vendor/plugins/
> engines
>
>   On vendor/plugins/engines directory:
>     git checkout -b new 2.1.0
>
> Regards,
> Santiago Pastorino
> AgilEndianhttp://www.agilendian.com
>
> jerik ha escrito:
>
> > Hi,
>
> > I tried to install communityengine with rails 2.1.0. Following the
> > installation guide (http://sites.google.com/a/curbly.com/
> > communityengine/installation) When creating the migration I get the
> > following error:
>
> > D:/bar/foo>ruby script\generate plugin_migration
> > D:/bar/foo/config/../vendor/plugins/engines/boot.rb: 4:
> > This version of the engines plugin requires Rails 2.2.0 or later!
> > (RuntimeErr
> > or)
> >         from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `gem_original_require'
> >         from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `require'
> >         from D:/bar/foo/config/environment.rb:13
> >         from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `gem_original_require'
> >         from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `require'
> >         from C:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/
> > generate.rb :1
> >         from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `gem_original_require'
> >         from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `require'
> >         from script/generate:3
>
> > With this error message i tried to install it with rails 2.2.0,
> > following as well the installation guide. When creating the migration
> > I get the following error:
>
> > D:/foo/bar>ruby script\generate plugin_migration
> > D:/foo/bar/vendor/plugins/community_engine/engine_plugins/globalite/
> > lib/rails/localized_active_record.rb:5:
> > uninitialized class variable @@default_error_messagesin
> > ActiveRecord::Errors (NameError)
> >         from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `gem_original_require'
> >         from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `require'
> >         from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> > active_support/dependencies.rb:153:in `require'
> >         from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> > active_support/dependencies.rb:521:in `new_constants_in'
> >         from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> > active_support/dependencies.rb:153:in `require'
> >         from D:/foo/bar/vendor/plugins/community_engine/engine_plugins/
> > globalite/lib/globalite.rb:19
> >         from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `gem_original_require'
> >         from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `require'
> >          ... 19 levels...
> >         from C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/
> > generate.rb :1
> >         from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `gem_original_require'
> >         from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `require'
> >         from script/generate:3
>
> > How do I solve this problem? Should I go with rails 2.2.0 or 2.1.0?
>
> > Cheers -- jerik

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" 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/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to