ruby on rails - JRuby and jQuery don't play well together -


hello using:

* mac os x 10.6.5 * netbeans 6.9.1 (with embedded jruby 1.5.1) * jdk6u17 * glassfish gem 1.0.2 * rails 3.0.3 

i want use jquery , ckeditor in project.

after install jquery-rails gem , ran command

rails g jquery:install 

somethings go wrong.

output:

      remove  public/javascripts/controls.js       remove  public/javascripts/dragdrop.js       remove  public/javascripts/effects.js       remove  public/javascripts/prototype.js     fetching  jquery (1.4.3)    identical  public/javascripts/jquery.js    identical  public/javascripts/jquery.min.js     fetching  jquery ujs adapter (github head) /applications/netbeans/netbeans 6.9.1.app/contents/resources/netbeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require': load error: rails/commands/generate -- java.lang.nosuchmethoderror: org.jruby.ruby.getselectorpool()lorg/jruby/util/io/selectorpool; (loaderror)     /applications/netbeans/netbeans 6.9.1.app/contents/resources/netbeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'     /applications/netbeans/netbeans 6.9.1.app/contents/resources/netbeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'     /applications/netbeans/netbeans 6.9.1.app/contents/resources/netbeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in `new_constants_in'     /applications/netbeans/netbeans 6.9.1.app/contents/resources/netbeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'     /applications/netbeans/netbeans 6.9.1.app/contents/resources/netbeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'     /applications/netbeans/netbeans 6.9.1.app/contents/resources/netbeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/commands.rb:17     /applications/netbeans/netbeans 6.9.1.app/contents/resources/netbeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/commands.rb:6:in `require'     script/rails:6 

any idea how fix that? there alternative way install jquery on jruby?

i grateful help.

try update gem ...https://github.com/rails/jquery-ujs , link include docs "manual" install


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -