Redmine 2.0.0插件安装错误ActionController :: RoutingError未初始化的常量

时间:2012-05-19 08:23:28

标签: ruby-on-rails-3 redmine redmine-plugins

我已安装Redmine 2.0.0并尝试从github在 plugins 目录中安装插件。
我曾尝试安装两个插件 Monitoring_Controlling Redmine-Bulk-User-Assignments 按照github插件上编写的安装步骤进行操作,但两个插件都出现相同的错误并且出现错误< / p>

Started GET "/bulk_user_assignments" for 127.0.0.1 at Sat May 19 13:37:26 +0530 2012

ActionController::RoutingError (uninitialized constant BulkUserAssignmentsController):
  activesupport (3.2.3) lib/active_support/inflector/methods.rb:218:in `constantize'
  activesupport (3.2.3) lib/active_support/inflector/methods.rb:217:in `each'
  activesupport (3.2.3) lib/active_support/inflector/methods.rb:217:in `constantize'
  actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:69:in `controller_reference'
  actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:54:in `controller'
  actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:32:in `call'
  journey (1.0.3) lib/journey/router.rb:68:in `call'
  journey (1.0.3) lib/journey/router.rb:56:in `each'
  journey (1.0.3) lib/journey/router.rb:56:in `call'
  actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:600:in `call'
  rack-openid (1.3.1) lib/rack/openid.rb:98:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
  rack (1.4.1) lib/rack/etag.rb:23:in `call'
  rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/head.rb:14:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/flash.rb:242:in `call'
  rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
  rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/cookies.rb:338:in `call'
  activerecord (3.2.3) lib/active_record/query_cache.rb:64:in `call'
  activerecord (3.2.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:467:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
  activesupport (3.2.3) lib/active_support/callbacks.rb:405:in `_run__108590059__call__4__callbacks'
  activesupport (3.2.3) lib/active_support/callbacks.rb:405:in `send'
  activesupport (3.2.3) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.3) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
  activesupport (3.2.3) lib/active_support/callbacks.rb:81:in `send'
  activesupport (3.2.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
  actionpack (3.2.3) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/reloader.rb:65:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.3) lib/rails/rack/logger.rb:26:in `call_app'
  railties (3.2.3) lib/rails/rack/logger.rb:16:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/request_id.rb:22:in `call'
  rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.1) lib/rack/runtime.rb:17:in `call'
  activesupport (3.2.3) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.1) lib/rack/lock.rb:15:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/static.rb:62:in `call'
  railties (3.2.3) lib/rails/engine.rb:479:in `call'
  railties (3.2.3) lib/rails/application.rb:220:in `call'
  rack (1.4.1) lib/rack/content_length.rb:14:in `call'
  railties (3.2.3) lib/rails/rack/log_tailer.rb:14:in `call'
  rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
  /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
  /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
  /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
  /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
  /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
  /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
  rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
  rack (1.4.1) lib/rack/server.rb:265:in `start'
  railties (3.2.3) lib/rails/commands/server.rb:70:in `start'
  railties (3.2.3) lib/rails/commands.rb:55
  railties (3.2.3) lib/rails/commands.rb:50:in `tap'
  railties (3.2.3) lib/rails/commands.rb:50
  script/rails:6:in `require'
  script/rails:6

我是否需要做任何其他事情来安装redmine 2中的插件或在任何其他地方写入路由。 还有一件事是插件写在rails 2中,所以我将路由文件更改为rails 3 routes file。

2 个答案:

答案 0 :(得分:3)

基于Redmine 1.x的插件将在2.0

中断

请参阅redmine2.0发布消息 - &gt; http://www.redmine.org/news/66

monitoring_controlling插件还不兼容Redmine2.0(unlilke做广告),我在这里打开了一个问题 - &gt; https://github.com/alexmonteiro/Redmine-Monitoring-Controlling/issues/17#issuecomment-5806223

您需要更改路径文件(其中一个更改)。更多用于理解编写未来校对插件的一般范围,这个讨论可能有一些用处 - &gt;

http://www.redmine.org/issues/10813

答案 1 :(得分:2)

Redmine Monitoring Controlling Plugin已准备好使用Redmine 2.0。

检查git存储库上的最后一次提交:https://github.com/alexmonteiro/Redmine-Monitoring-Controlling