`rescue in const_missing', jRails Bug with Ruby 1.9
Ruby 1.9 / Rails 2.3.4 설치한 후, 아래 처럼 jrails plugin을 설치하면
ruby script/plugin install http://ennerchi.googlecode.com/svn/trunk/plugins/jrails
에러!
dependencies.rb:105:in `rescue in const_missing': uninitialized constant ActionView::Helpers::JavaScriptElementProxy::ActionView (NameError)
해당 버그가 github에 fix[2]되어 있긴 한데 아직 gogolecode에는 반영이 안된 듯
jrails.rb를 직접 수정하면 된다.
/plugins/jrails/lib/jrails.rb
- JQUERY_VAR = ActionView::Helpers::PrototypeHelper::JQUERY_VAR
+ JQUERY_VAR = PrototypeHelper::JQUERY_VAR
[2] http://github.com/cheald/jrails/commit/8cafe41c82617539bc03bf8a4aa1ed31e2bdcaec
댓글
댓글 쓰기