I too have bumped into this nil:NilClass (NoMethodError)
Everything works fine in development.
But script/server coughs up an error when I
export RAILS_ENV=production
I've overridden these controllers:
application_controller.rb
posts_controller.rb
users_controller.rb
More info which I got from my development environment since
script/about will not run on production:
[ora...@ion c]$
[ora...@ion c]$
[ora...@ion c]$ script/about
/home/pt/c/vendor/plugins/community_engine/app/controllers/
users_controller.rb:17: undefined method `merge' for nil:NilClass
(NoMethodError)
from /r2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from /r2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from /home/pt/c/vendor/rails/activesupport/lib/active_support/
dependencies.rb:158:in `require_without_desert'
from /home/pt/c/vendor/gems/desert-0.5.3/lib/desert/ruby/
object.rb:8:in `require'
from /home/pt/c/vendor/gems/desert-0.5.3/lib/desert/ruby/object.rb:
32:in `__each_matching_file'
from /home/pt/c/vendor/gems/desert-0.5.3/lib/desert/ruby/
object.rb:7:in `require'
from /home/pt/c/vendor/rails/activesupport/lib/active_support/
dependencies.rb:265:in `require_or_load'
from /home/pt/c/vendor/gems/desert-0.5.3/lib/desert/rails/
dependencies.rb:27:in `depend_on'
... 14 levels...
from /home/pt/c/vendor/rails/railties/lib/commands/about.rb:1
from /r2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from /r2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from script/about:4
[ora...@ion c]$ export RAILS_ENV=development
[ora...@ion c]$ script/about
/home/pt/c/vendor/gems/rack-1.0.1/lib/rack/utils.rb:29: warning:
already initialized constant DEFAULT_SEP
/home/pt/c/vendor/gems/rack-1.0.1/lib/rack/utils.rb:285: warning:
already initialized constant HTTP_STATUS_CODES
/home/pt/c/vendor/gems/rack-1.0.1/lib/rack/utils.rb:289: warning:
already initialized constant STATUS_WITH_NO_ENTITY_BODY
/home/pt/c/vendor/gems/rack-1.0.1/lib/rack/utils.rb:296: warning:
already initialized constant EOL
About your application's environment
Ruby version 1.8.6 (i686-linux)
RubyGems version 1.3.1
Rack version 1.0
Rails version 2.3.4
Active Record version 2.3.4
Active Resource version 2.3.4
Action Mailer version 2.3.4
Active Support version 2.3.4
Edge Rails revision 0e8164cda389c2d0a5d1327a2b16db601a0107ad
Application root /home/pt/c
Environment development
Database adapter mysql
Database schema version 20091120045512
[ora...@ion c]$
[ora...@ion c]$
[ora...@ion c]$
[ora...@ion c]$ cd vendor/plugins/community_engine/
[ora...@ion community_engine]$
[ora...@ion community_engine]$ git log -1
commit e5682d22f6724bd2c13d9e60835febe6f6c4f823
Author: bborn <[email protected]>
Date: Mon Sep 21 10:51:33 2009 -0500
add nice regex to upgrading instructions for migration fixesc
[ora...@ion community_engine]$
[ora...@ion community_engine]$
--
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.