indirect / jquery-rails

A gem to automate using jQuery with Rails 3
MIT License
465 stars 36 forks source link

NameError when running install generator #66

Closed cmezak closed 13 years ago

cmezak commented 13 years ago

I get the following error when I attempt to run the install generator.

Chuckbook:wca_cert charliemezak$ rails g jquery:install --ui /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/jquery-rails-1.0.3/lib/generators/jquery/install/install_generator.rb:6:in <class:InstallGenerator>': uninitialized class variable @@jquery_version in Jquery::Generators::InstallGenerator (NameError) from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/jquery-rails-1.0.3/lib/generators/jquery/install/install_generator.rb:5:inmodule:Generators' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/jquery-rails-1.0.3/lib/generators/jquery/install/install_generator.rb:4:in <module:Jquery>' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/jquery-rails-1.0.3/lib/generators/jquery/install/install_generator.rb:3:in<top (required)>' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in require' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:inblock in require' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in block in load_dependency' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:596:innew_constants_in' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in load_dependency' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:inrequire' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/generators.rb:286:in block (2 levels) in lookup' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/generators.rb:282:ineach' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/generators.rb:282:in block in lookup' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/generators.rb:281:ineach' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/generators.rb:281:in lookup' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/generators.rb:141:infind_by_namespace' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/generators.rb:161:in invoke' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/commands/generate.rb:10:in<top (required)>' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in require' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:inblock in require' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in block in load_dependency' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:596:innew_constants_in' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in load_dependency' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:inrequire' from /Users/charliemezak/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/commands.rb:17:in <top (required)>' from script/rails:6:inrequire' from script/rails:6:in `

'

indirect commented 13 years ago

This is fixed in 1.0.4, please upgrade.

cmezak commented 13 years ago

Err, thanks. I was updating via rubygems. I guess 1.0.4 isn't there yet. Updating from github fixed it. Thanks!

indirect commented 13 years ago

Working for me:


$ gem list jquery-rails -r

*** REMOTE GEMS ***

jquery-rails (1.0.4)