Thanx Bruno!
That sovled problem.

On 23 окт, 21:46, Bruno Bornsztein <[email protected]> wrote:
> Copy this gist into your config/initializers:http://gist.github.com/216991
>
> On Thu, Oct 22, 2009 at 11:48 PM, Ansar.ich <[email protected]>wrote:
>
>
>
> > Thank you for your time and answers, but unfortunately, that did not
> > help. I still have the same error with rake 'community_engine:test'.
> > However, 'rake test' runs normally. Here is the simple installation of
> > community engine with empty users_controller.rb:
> >http://groups.google.com/group/communityengine/web/test5.zip?hl=en
>
> > To make it clear, I installed community engine on app generated with
> > rails 2.3.2, rake 0.8.7. I only added users_controller.rb to
> > RAILS_ROOT/app/controllers/users_controller.rb, with only:
> > class UsersController < BaseController
> > end
>
> > On Oct 22, 7:55 pm, Bruno Bornsztein <[email protected]>
> > wrote:
> > > Thanks Levi!
>
> > > On Oct 22, 2009, at 8:50 AM, Levi Rosol <[email protected]> wrote:
>
> > > > just clarifying that I think Bruno meant to say "you should not be
> > > > copying the whole file from CE,"
>
> > > > --
> > > > Levi Rosol
> > > > Twitter: @LeviRosol
>
> > > > On Thu, Oct 22, 2009 at 8:12 AM, Bruno Bornsztein <
> > [email protected]
> > > > > wrote:
> > > > When you override users_controller.rb, you should be copying the
> > > > whole file from CE, you just just define a users_controller in your
> > > > app and override the individual methods you want to change. By
> > > > copying the whole file, you're including line #17, where it calls
> > > > AppConfig.default_mce_options.merge.
>
> > > > Since this is loaded before the CE plugin (and therefore AppConfig)
> > > > is loaded, it raises a nil pointer error.
>
> > > > On Thu, Oct 22, 2009 at 4:38 AM, Ansar.ich
> > > > <[email protected]> wrote:
>
> > > > Hello,
>
> > > > Community Engine itself has started normally. rake test and rake
> > > > community_engine:test run normally. And web works fine using webrick
> > > > too. Then I try to override users_controller by copying it into
> > > > RAILS_ROOT/app/controllers/ and when I run 'rake
> > > > community_engine:test' again I get the following error:
>
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---------------------------------------------------------------------
> > > > J:/projects/workspace_rubyonrails/vclub_new_installation/test4/vendor/
> > > > plugins/community_engine/app/controllers/users_controller.rb:17: You
> > > > have a nil object when you didn't expect it! (NoMethodError)
> > > > The error occurred while evaluating nil.merge   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.3.2/lib/
> > > > active_support/dependencies.rb:158:in `require_without_desert'
> > > >        from C:/Ruby/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/
> > > > ruby/object.rb:8:in `require'
> > > >        from C:/Ruby/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/
> > > > ruby/object.rb:32:in `__each_matching_file'
> > > >        from C:/Ruby/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/
> > > > ruby/object.rb:7:in `require'
> > > >        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
> > > > active_support/dependencies.rb:265:in `require_or_load'
> > > >        from C:/Ruby/lib/ruby/gems/1.8/gems/desert-0.5.2/lib/desert/
> > > > rails/dependencies.rb:27:in `depend_on'
> > > >         ... 18 levels...
> > > >        from C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/
> > > > rake_test_loader.rb:5:in `load'
> > > >        from C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/
> > > > rake_test_loader.rb:5
> > > >        from C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/
> > > > rake_test_loader.rb:5:in `each'
> > > >        from C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/
> > > > rake_test_loader.rb:5
> > > > rake aborted!
> > > > Command failed with status (1): [C:/Ruby/bin/ruby.exe -I"lib;lib" "C:/
> > > > Ruby/...]
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:995:in `sh'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `call'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `sh'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in `sh'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1029:in `ruby'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in `ruby'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/testtask.rb:117:in
> > > > `define'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1112:in
> > > > `verbose'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/testtask.rb:102:in
> > > > `define'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
> > > > `invoke_with_call_chain'
> > > > C:/Ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
> > > > `invoke_with_call_chain'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
> > > > `invoke_task'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
> > > > `top_level'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
> > > > `top_level'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
> > > > `standard_exception_handling'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in
> > > > `top_level'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
> > > > `standard_exception_handling'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
> > > > C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
> > > > C:/Ruby/bin/rake:19:in `load'
> > > > C:/Ruby/bin/rake:19
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---
> > > > ---------------------------------------------------------------------
>
> > > > Please help, I don't have any clue how to fix it. By the way I get the
> > > > same error when running one of my web sites with community_engine in
> > > > production with passenger+nginx (web site works fine with webrick).
> > > > Where am I wrong.
--~--~---------~--~----~------------~-------~--~----~
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