problem when 0.8.4 update to 1.0.1
Added by hanjiang zheng over 14 years ago
i use InstantRails version 2.0
ruby version 1.8.7
gem version 1.3.7
rails version 2.3.5
it show
E:\InstantRails\rails_apps\redmine101>rake db:migrate RAILS_ENV=production --tra
ce
(in E:/InstantRails/rails_apps/redmine101)
- Invoke db:migrate (first_time)
- Invoke environment (first_time)
- Execute environment
rake aborted!
undefined method `default_error_messages=' for ActiveRecord::Errors:Class
E:/InstantRails/rails_apps/redmine101/config/environment.rb:75
E:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge
m_original_require'
E:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
E:/InstantRails/rails_apps/redmine101/vendor/rails/activesupport/lib/active_supp
ort/dependencies.rb:156:in `require'
E:/InstantRails/rails_apps/redmine101/vendor/rails/activesupport/lib/active_supp
ort/dependencies.rb:521:in `new_constants_in'
E:/InstantRails/rails_apps/redmine101/vendor/rails/activesupport/lib/active_supp
ort/dependencies.rb:156:in `require'
E:/InstantRails/rails_apps/redmine101/vendor/rails/railties/lib/tasks/misc.rake:
4
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execu
te'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execu
te'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invok
e_with_call_chain'
E:/InstantRails/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invok
e_with_call_chain'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invok
e_prerequisites'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invok
e_prerequisites'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invok
e_with_call_chain'
E:/InstantRails/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invok
e_with_call_chain'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invok
e'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invo
ke_task'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_
level'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each
'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_
level'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `stan
dard_exception_handling'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_
level'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `stan
dard_exception_handling'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
E:/InstantRails/ruby/bin/rake:19:in `load'
E:/InstantRails/ruby/bin/rake:19
can anyone help me ?
Thanks!!!!!
Replies (2)
RE: problem when 0.8.4 update to 1.0.1 - Added by Felix Schäfer over 14 years ago
Rake complains about something in E:/InstantRails/rails_apps/redmine101/config/environment.rb
on line 75, have a look there. I looked at the stock one, but there isn't a line 75 in there, so I can't help you more.
RE: problem when 0.8.4 update to 1.0.1 - Added by hanjiang zheng over 14 years ago
i found the problem
the environment.rb file is version 0.8.4
i change to 1.0.1 file
it ok