no create method error in controller Statuses
Added by Gao Yong Pan over 15 years ago
I installed the Redmine Status Updates 0.1.1 on redmine 0.8.4.devel.2858, when I try to add a new status, below exceptions are thrown, could anyone please help check what's root cause of the problem?
NoMethodError in StatusesController#create
NoMethodError
RAILS_ROOT: /data0/dataCentral/redmine
Application Trace | Framework Trace | Full Trace
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/associations/association_proxy.rb:209:in
`method_missing'
/dataCentral/RubyGems/gemrepository/gems/activesupport-2.2.2/lib/active_support/core_ext/object/misc.rb:39:in
`returning'
/dataCentral/RubyGems/gemrepository/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:462:in
`__send__'
/dataCentral/RubyGems/gemrepository/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:462:in
`create!'
/dataCentral/RubyGems/gemrepository/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:455:in
`initialize'
/dataCentral/RubyGems/gemrepository/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:392:in
`new'
/dataCentral/RubyGems/gemrepository/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:392:in
`method_missing'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/observer.rb:171:in
`send'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/observer.rb:171:in
`update'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:328:in
`notify'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:321:in
`callback'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:238:in
`create_without_timestamps'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/timestamp.rb:29:in
`create'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/base.rb:2699:in
`create_or_update_without_callbacks'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:222:in
`create_or_update'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/base.rb:2383:in
`save_without_validation'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/validations.rb:1009:in
`save_without_dirty'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/dirty.rb:79:in
`save_without_transactions'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/transactions.rb:179:in
`send'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/transactions.rb:179:in
`with_transaction_returning_status'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in
`transaction'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/transactions.rb:129:in
`transaction'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/transactions.rb:138:in
`transaction'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/transactions.rb:178:in
`with_transaction_returning_status'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/transactions.rb:146:in
`save'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/transactions.rb:158:in
`rollback_active_record_state!'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/transactions.rb:146:in
`save'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in
`send'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in
`perform_action_without_filters'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in
`call_filters'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in
`perform_action_without_benchmark'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/rescue.rb:136:in
`perform_action_without_caching'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:13:in
`perform_action'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/query_cache.rb:8:in
`cache'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:12:in
`perform_action'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in
`send'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in
`process_without_filters'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/filters.rb:606:in
`process_without_session_management_support'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/session_management.rb:134:in
`process'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in
`process'
/dataCentral/RubyGems/gemrepository/gems/rails-2.2.2/lib/webrick_server.rb:74:in
`service'
/dataCentral/RubyGems/gemrepository/gems/rails-2.2.2/lib/commands/servers/webrick.rb:66
/dataCentral/RubyGems/gemrepository/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in
`require'
/dataCentral/RubyGems/gemrepository/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in
`new_constants_in'
/dataCentral/RubyGems/gemrepository/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in
`require'
/dataCentral/RubyGems/gemrepository/gems/rails-2.2.2/lib/commands/server.rb:49
vendor/plugins/redmine_status/app/models/status.rb:63:in `recipients'
vendor/plugins/redmine_status/app/models/status.rb:62:in `recipients'
vendor/plugins/redmine_status/app/models/status_mailer.rb:3:in
`realtime_notification'
vendor/plugins/redmine_status/app/models/status_observer.rb:5:in `after_create'
/dataCentral/ruby/lib/ruby/1.8/observer.rb:185:in `notify_observers'
/dataCentral/ruby/lib/ruby/1.8/observer.rb:184:in `each'
/dataCentral/ruby/lib/ruby/1.8/observer.rb:184:in `notify_observers'
vendor/plugins/redmine_status/app/controllers/statuses_controller.rb:28:in
`create'
/dataCentral/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:183:in
`handle_request'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in
`dispatch_unlocked'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in
`dispatch'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in
`synchronize'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in
`dispatch'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in
`dispatch_cgi'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in
`dispatch'
/dataCentral/RubyGems/gemrepository/gems/rails-2.2.2/lib/webrick_server.rb:103:in
`handle_dispatch'
/dataCentral/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/dataCentral/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/dataCentral/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/dataCentral/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
/dataCentral/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/dataCentral/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
/dataCentral/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
/dataCentral/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
/dataCentral/ruby/lib/ruby/1.8/webrick/server.rb:37:in `start'
/dataCentral/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
/dataCentral/RubyGems/gemrepository/gems/rails-2.2.2/lib/webrick_server.rb:60:in
`dispatch'
/dataCentral/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/dataCentral/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
/dataCentral/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/dataCentral/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
script/server:3
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/associations/association_proxy.rb:209:in
`method_missing'
vendor/plugins/redmine_status/app/models/status.rb:63:in `recipients'
/dataCentral/RubyGems/gemrepository/gems/activesupport-2.2.2/lib/active_support/core_ext/object/misc.rb:39:in
`returning'
vendor/plugins/redmine_status/app/models/status.rb:62:in `recipients'
vendor/plugins/redmine_status/app/models/status_mailer.rb:3:in
`realtime_notification'
/dataCentral/RubyGems/gemrepository/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:462:in
`__send__'
/dataCentral/RubyGems/gemrepository/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:462:in
`create!'
/dataCentral/RubyGems/gemrepository/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:455:in
`initialize'
/dataCentral/RubyGems/gemrepository/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:392:in
`new'
/dataCentral/RubyGems/gemrepository/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:392:in
`method_missing'
vendor/plugins/redmine_status/app/models/status_observer.rb:5:in `after_create'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/observer.rb:171:in
`send'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/observer.rb:171:in
`update'
/dataCentral/ruby/lib/ruby/1.8/observer.rb:185:in `notify_observers'
/dataCentral/ruby/lib/ruby/1.8/observer.rb:184:in `each'
/dataCentral/ruby/lib/ruby/1.8/observer.rb:184:in `notify_observers'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:328:in
`notify'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:321:in
`callback'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:238:in
`create_without_timestamps'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/timestamp.rb:29:in
`create'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/base.rb:2699:in
`create_or_update_without_callbacks'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:222:in
`create_or_update'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/base.rb:2383:in
`save_without_validation'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/validations.rb:1009:in
`save_without_dirty'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/dirty.rb:79:in
`save_without_transactions'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/transactions.rb:179:in
`send'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/transactions.rb:179:in
`with_transaction_returning_status'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in
`transaction'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/transactions.rb:129:in
`transaction'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/transactions.rb:138:in
`transaction'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/transactions.rb:178:in
`with_transaction_returning_status'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/transactions.rb:146:in
`save'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/transactions.rb:158:in
`rollback_active_record_state!'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/transactions.rb:146:in
`save'
vendor/plugins/redmine_status/app/controllers/statuses_controller.rb:28:in
`create'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in
`send'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in
`perform_action_without_filters'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in
`call_filters'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in
`perform_action_without_benchmark'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/dataCentral/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/rescue.rb:136:in
`perform_action_without_caching'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:13:in
`perform_action'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache'
/dataCentral/RubyGems/gemrepository/gems/activerecord-2.2.2/lib/active_record/query_cache.rb:8:in
`cache'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:12:in
`perform_action'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in
`send'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in
`process_without_filters'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/filters.rb:606:in
`process_without_session_management_support'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/session_management.rb:134:in
`process'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in
`process'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:183:in
`handle_request'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in
`dispatch_unlocked'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in
`dispatch'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in
`synchronize'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in
`dispatch'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in
`dispatch_cgi'
/dataCentral/RubyGems/gemrepository/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in
`dispatch'
/dataCentral/RubyGems/gemrepository/gems/rails-2.2.2/lib/webrick_server.rb:103:in
`handle_dispatch'
/dataCentral/RubyGems/gemrepository/gems/rails-2.2.2/lib/webrick_server.rb:74:in
`service'
/dataCentral/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/dataCentral/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/dataCentral/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/dataCentral/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
/dataCentral/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/dataCentral/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
/dataCentral/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
/dataCentral/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
/dataCentral/ruby/lib/ruby/1.8/webrick/server.rb:37:in `start'
/dataCentral/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
/dataCentral/RubyGems/gemrepository/gems/rails-2.2.2/lib/webrick_server.rb:60:in
`dispatch'
/dataCentral/RubyGems/gemrepository/gems/rails-2.2.2/lib/commands/servers/webrick.rb:66
/dataCentral/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/dataCentral/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
/dataCentral/RubyGems/gemrepository/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in
`require'
/dataCentral/RubyGems/gemrepository/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in
`new_constants_in'
/dataCentral/RubyGems/gemrepository/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in
`require'
/dataCentral/RubyGems/gemrepository/gems/rails-2.2.2/lib/commands/server.rb:49
/dataCentral/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/dataCentral/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
script/server:3
Request
Parameters:
{"commit"=>"Save",
"status"=>{"project_id"=>"1",
"message"=>"add a status message"}}
Show session dump
---
projects_list_files_sort: filename
:query:
:project_id: 1
:filters:
tracker_id:
:values:
- "2"
:operator: "="
status_id:
:values:
- ""
:operator: o
:group_by:
:user_id: 3
issues_index_sort: id:desc
flash: !map:ActionController::Flash::FlashHash {}
users_list_sort: login
Response
Headers:
{"Content-Type"=>"",
"cookie"=>[],
"Cache-Control"=>"no-cache"}