Project

General

Profile

undefined method 'default_search_scope' for boardscontroller

Added by Larry Zhang almost 15 years ago

I don't know how to run

RAILS_ENV=YOUR_ENVIRONMENT script/about

in windows, so I wrote by myself, they are:

ruby version (1.9.1p243(2009-7-16 revision 24175) [i386-mingw32])
gems version (1.3.5)
rails version (2.3.5)
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
mysql (2.8.1)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
tree (0.2.1)
Application root c:/redmine
Environment production
Database adapter mysql
Database schema version don't know

error messages:

ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]

C:\Documents and Settings\Administrator>cd c:\redmine

C:\redmine>ruby script/server -e production
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
C:/redmine/app/controllers/boards_controller.rb:19:in `<class:BoardsController>'
: undefined method `default_search_scope' for BoardsController:Class (NoMethodEr
ror)
from C:/redmine/app/controllers/boards_controller.rb:18:in `<top (requir
ed)>'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s
upport/dependencies.rb:158:in `require'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s
upport/dependencies.rb:158:in `require'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s
upport/dependencies.rb:265:in `require_or_load'
from C:/redmine/vendor/plugins/engines/lib/engines/rails_extensions/depe
ndencies.rb:124:in `block in require_or_load_with_engine_additions'
from C:/redmine/vendor/plugins/engines/lib/engines/rails_extensions/depe
ndencies.rb:101:in `each'
from C:/redmine/vendor/plugins/engines/lib/engines/rails_extensions/depe
ndencies.rb:101:in `require_or_load_with_engine_additions'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s
upport/dependencies.rb:224:in `depend_on'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s
upport/dependencies.rb:136:in `require_dependency'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/initializer.rb:4
14:in `block (2 levels) in load_application_classes'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/initializer.rb:4
13:in `each'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/initializer.rb:4
13:in `block in load_application_classes'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/initializer.rb:4
11:in `each'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/initializer.rb:4
11:in `load_application_classes'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/initializer.rb:1
97:in `process'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/initializer.rb:1
13:in `run'
from C:/redmine/config/environment.rb:9:in `<top (required)>'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s
upport/dependencies.rb:156:in `require'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s
upport/dependencies.rb:156:in `block in require'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s
upport/dependencies.rb:521:in `new_constants_in'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_s
upport/dependencies.rb:156:in `require'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/commands/server.
rb:84:in `<top (required)>'
from script/server:3:in `require'
from script/server:3:in `<main>'

C:\redmine>


    (1-2/2)