Project

General

Profile

Defect #795

Rails情報リンクで落ちる

Added by akipii oga about 8 years ago. Updated about 8 years ago.

Status:
終了(Closed)
Priority:
通常(Normal)
Target version:
Start date:
07/19/2011
Due date:
% Done:

100%

Estimated time:

Description

Rails情報リンクを押下するとエラーが発生してしまいます。

【環境】
WindowxVista
Firefox5
Redmine1.2.0

【エラーログ】
NameError in Info#show

Showing vendor/plugins/redmine_information/app/views/info/_rails_info.html.erb where line #2 raised:

uninitialized constant Rails::Info

Extracted source (around line #2):

1:
2: <%= Rails::Info.to_html %>

Trace of template inclusion: vendor/plugins/redmine_information/app/views/info/show.html.erb

RAILS_ROOT: C:/home/ruby/workspace/redmine120/redmine
Application Trace | Framework Trace | Full Trace

C:/home/ruby/workspace/redmine120/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:466:in `load_missing_constant'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:106:in `const_missing'
C:/home/ruby/workspace/redmine120/redmine/vendor/plugins/redmine_information/app/views/info/_rails_info.html.erb:2:in `_run_erb_vendor47plugins47redmine_information47app47views47info47_rails_info46html46erb_locals_object_rails_info'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/renderable.rb:34:in `send'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/renderable.rb:34:in `render'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/base.rb:306:in `with_template'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/renderable.rb:30:in `render'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/renderable_partial.rb:20:in `render'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/renderable_partial.rb:19:in `render'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/template.rb:205:in `render_template'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/renderable_partial.rb:44:in `render_partial'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/partials.rb:184:in `render_partial'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/base.rb:267:in `render'
C:/home/ruby/workspace/redmine120/redmine/vendor/plugins/redmine_information/app/views/info/show.html.erb:13:in `_run_erb_vendor47plugins47redmine_information47app47views47info47show46html46erb'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/renderable.rb:34:in `send'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/renderable.rb:34:in `render'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/base.rb:306:in `with_template'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/renderable.rb:30:in `render'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/template.rb:205:in `render_template'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/base.rb:265:in `render'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/base.rb:348:in `_render_with_layout'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_view/base.rb:262:in `render'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:1252:in `render_for_file'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:936:in `render_without_benchmark'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
C:/ruby/lib/ruby/1.8/benchmark.rb:308:in `realtime'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:1328:in `default_render'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:1334:in `perform_action_without_filters'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
C:/ruby/lib/ruby/1.8/benchmark.rb:308:in `realtime'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/flash.rb:151:in `perform_action'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:532:in `send'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:532:in `process_without_filters'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:391:in `process'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:386:in `call'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:438:in `call'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:87:in `dispatch'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in `_call'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in `cache'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in `call'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:25:in `call'
C:/ruby/lib/ruby/gems/1.8/gems/rack-1.2.2/lib/rack/head.rb:9:in `call'
C:/ruby/lib/ruby/gems/1.8/gems/rack-1.2.2/lib/rack/methodoverride.rb:24:in `call'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in `call'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:99:in `call'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:in `call'
C:/ruby/lib/ruby/gems/1.8/gems/rack-1.2.2/lib/rack/lock.rb:11:in `call'
C:/ruby/lib/ruby/gems/1.8/gems/rack-1.2.2/lib/rack/lock.rb:11:in `synchronize'
C:/ruby/lib/ruby/gems/1.8/gems/rack-1.2.2/lib/rack/lock.rb:11:in `call'
C:/home/ruby/workspace/redmine120/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:in `call'
C:/ruby/lib/ruby/gems/1.8/gems/thin-1.2.11-x86-mswin32/lib/rack/adapter/rails.rb:69:in `call'
C:/ruby/lib/ruby/gems/1.8/gems/thin-1.2.11-x86-mswin32/lib/thin/connection.rb:84:in `pre_process'
C:/ruby/lib/ruby/gems/1.8/gems/thin-1.2.11-x86-mswin32/lib/thin/connection.rb:82:in `catch'
C:/ruby/lib/ruby/gems/1.8/gems/thin-1.2.11-x86-mswin32/lib/thin/connection.rb:82:in `pre_process'
C:/ruby/lib/ruby/gems/1.8/gems/thin-1.2.11-x86-mswin32/lib/thin/connection.rb:57:in `process'
C:/ruby/lib/ruby/gems/1.8/gems/thin-1.2.11-x86-mswin32/lib/thin/connection.rb:42:in `receive_data'
C:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.12.10-x86-mswin32-60/lib/eventmachine.rb:256:in `run_machine'
C:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.12.10-x86-mswin32-60/lib/eventmachine.rb:256:in `run'
C:/ruby/lib/ruby/gems/1.8/gems/thin-1.2.11-x86-mswin32/lib/thin/backends/base.rb:61:in `start'
C:/ruby/lib/ruby/gems/1.8/gems/thin-1.2.11-x86-mswin32/lib/thin/server.rb:159:in `start'
C:/ruby/lib/ruby/gems/1.8/gems/thin-1.2.11-x86-mswin32/lib/thin/controllers/controller.rb:86:in `start'
C:/ruby/lib/ruby/gems/1.8/gems/thin-1.2.11-x86-mswin32/lib/thin/runner.rb:185:in `send'
C:/ruby/lib/ruby/gems/1.8/gems/thin-1.2.11-x86-mswin32/lib/thin/runner.rb:185:in `run_command'
C:/ruby/lib/ruby/gems/1.8/gems/thin-1.2.11-x86-mswin32/lib/thin/runner.rb:151:in `run!'
C:/ruby/lib/ruby/gems/1.8/gems/thin-1.2.11-x86-mswin32/bin/thin:6
C:/ruby/bin/thin:19:in `load'
C:/ruby/bin/thin:19

History

#1

Updated by Mitsuyoshi Yoshida about 8 years ago

  • Status changed from 新規(New) to 終了(Closed)
  • Assignee set to Mitsuyoshi Yoshida
  • Target version set to 0.2.0
  • % Done changed from 0 to 100

Rails 情報は Rails::Info のモジュールを使っているのですが、それがついてないバージョンの Rails を使われているためかもしれません。
0.2.1 で落ちずにエラーメッセージを表示するようには修正しましたので、そちらをインストールしてみてください。

#2

Updated by akipii oga about 8 years ago

ver 0.2.1を試したら落ちなくなりました。
Blogにも感想を書きました。

Redmineインフォメーションプラグイン
http://forza.cocolog-nifty.com/blog/2011/07/redmine-a2d8.html

#3

Updated by Haru Iida about 8 years ago

info_controller.rb の頭に以下の2行を入れたらRails情報が表示されるようになりました。

$LOAD_PATH << "#{RAILTIES_PATH}/builtin/rails_info" 
require 'rails/info'

このサイトにも適用しています。
ご報告まで。

#4

Updated by Mitsuyoshi Yoshida about 8 years ago

バージョンではなく、ロードパスの問題だったんですね。
参考にさせていただいて、修正しておきます。

Also available in: Atom PDF