i got this error & gem update --system 1.8.25 is not working for me so please help me to resolve this issue
/home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/rails-2.3.11/lib/rails/gem_dependency.rb:21:in `add_frozen_gem_path': undefined method `source_index' for Gem:Module (NoMethodError)
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/rails-2.3.11/lib/initializer.rb:298:in `add_gem_load_paths'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/rails-2.3.11/lib/initializer.rb:132:in `process'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/rails-2.3.11/lib/initializer.rb:113:in `run'
from /home/rakshit/new/one_story/config/environment.rb:16:in `<top (required)>'
from /home/rakshit/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/rakshit/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `block in require'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:547:in `new_constants_in'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/rails-2.3.11/lib/commands/server.rb:84:in `<top (required)>'
from /home/rakshit/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/rakshit/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `block in require'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:547:in `new_constants_in'
from /home/rakshit/.rvm/gems/ruby-1.9.3-p194#one_story/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require'
from script/server:3:in `<main>'
my gem list is
actionmailer (2.3.11)
actionpack (2.3.11)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (2.3.11)
acts_as_geocodable (2.0.3)
addressable (2.2.6)
aws-s3 (0.6.2)
bigdecimal (1.1.0)
builder (3.0.0)
bundler (1.3.5, 1.3.4)
closure-compiler (1.1.1)
cocaine (0.2.0)
daemons (1.1.4)
erubis (2.7.0)
eventmachine (0.12.10)
gem-wrappers (1.2.4)
graticule (2.4.0)
happymapper (0.4.1)
heroku (2.17.0)
hike (1.2.3)
i18n (0.3.7)
jammit (0.6.0)
journey (1.0.4)
json (1.8.1, 1.5.4)
launchy (2.0.5)
libxml-ruby (2.7.0)
mail (2.4.4)
mime-types (1.16)
minitest (2.5.1)
mysql (2.8.1)
open4 (1.1.0)
paperclip (2.4.5)
Platform (0.4.0)
polyglot (0.3.4, 0.3.3)
POpen4 (0.1.4)
rack (1.1.2)
rack-cache (1.2)
rack-test (0.6.2)
rails (2.3.11)
rake (0.9.2.2)
rdoc (3.9.4)
rest-client (1.6.7)
rmagick (2.13.2)
rubygems-bundler (1.4.2, 1.1.1)
rubyzip (0.9.5)
rvm (1.11.3.9, 1.11.3.7, 1.11.3.6)
sprockets (2.1.3)
term-ansicolor (1.0.7)
thin (1.2.11)
tilt (1.4.1, 1.3.6)
tins (1.0.1)
treetop (1.4.15)
which_browser (0.1.2)
will_paginate (2.3.14)
xml-simple (1.1.0)
yui-compressor (0.9.6)
I've inherited a rails 2.2 app and I'm having some trouble getting my local enviornment configured in a way that will allow me to work. Booting WEBrick gives me the following error:
./script/server
=> Booting WEBrick...
/Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/rails/gem_dependency.rb:224:in `specification': undefined method `version_requirements=' for #<Gem::Dependency:0x10b1ec6a0> (NoMethodError)
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/rails/plugin/locator.rb:81:in `plugins'
from /Users/swachtma/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `inject'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/rails/plugin/locator.rb:81:in `each'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/rails/plugin/locator.rb:81:in `inject'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/rails/plugin/locator.rb:81:in `plugins'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/rails/plugin/loader.rb:63:in `locate_plugins'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/rails/plugin/loader.rb:62:in `map'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/rails/plugin/loader.rb:62:in `locate_plugins'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/rails/plugin/loader.rb:27:in `all_plugins'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/rails/plugin/loader.rb:22:in `plugins'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/rails/plugin/loader.rb:45:in `add_plugin_load_paths'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/initializer.rb:269:in `add_plugin_load_paths'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/initializer.rb:135:in `process'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/initializer.rb:112:in `send'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/initializer.rb:112:in `run'
from /Users/swachtma/htdocs/skating_circle/config/environment.rb:20
from /Users/swachtma/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
from /Users/swachtma/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/commands/servers/webrick.rb:59
from /Users/swachtma/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
from /Users/swachtma/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
from /Users/swachtma/.rvm/gems/ruby-1.8.7-p371#skating/gems/rails-2.2.2/lib/commands/server.rb:49
from /Users/swachtma/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
from /Users/swachtma/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
from ./script/server:3
I suspect I may need to downgrade my version of ruby-gems but I'm at a loss as to how to determine and appropriate version.
These are my local gems:
*** LOCAL GEMS ***
actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
activeresource (2.2.2)
activesupport (2.2.2)
aws-s3 (0.6.3)
builder (3.1.4)
bundler (1.2.3)
contacts (1.2.4)
diff-lcs (1.1.3)
fastercsv (1.5.5)
gdata (1.1.1)
heywatch (1.2.0)
highline (1.6.15)
hoptoad_notifier (2.4.11)
hpricot (0.8.6)
json (1.7.6)
mime-types (1.19)
mini_magick (3.4)
net-ssh (2.6.3)
rack (1.5.1)
rails (2.2.2)
rake (10.0.3, 0.8.7)
rest-client (1.6.7)
rspec (2.12.0, 1.3.2)
rspec-core (2.12.2, 2.6.4)
rspec-expectations (2.12.1, 2.6.0)
rspec-mocks (2.12.2, 2.6.0)
rspec-rails (1.3.2)
rubygems-bundler (1.1.0)
rubygems-update (1.4.2)
rvideo (0.9.3)
rvm (1.11.3.6)
subexec (0.2.2)
will_paginate (2.2.2)
xml-simple (1.1.2)
For Rails 2.2 gem version 1.4.2 works I guess. Try downgrading to 1.4.2
sudo gem update --system 1.4.2 or rvm install rubygems 1.4.2
Try this
gem install rubygems-update -v='1.4.2'
gem uninstall rubygems-update -v='1.5.0'
update_rubygems
Also, refer to these questions:
Gem dependency error in rails 2.3.4
ruby on rails: undefined method "version_requirements' when attempting to start server after new install
/Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- spec_helper (LoadError)
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in `require'
from /Users/jeffreyerickatz/Desktop/sites/demo_app/spec/factories/user.rb:1:in `<top (required)>'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:245:in `load'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:245:in `block in load'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:245:in `load'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl-4.1.0/lib/factory_girl/find_definitions.rb:20:in `block (2 levels) in find_definitions'
rom /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl-4.1.0/lib/factory_girl/find_definitions.rb:19:in `each'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl-4.1.0/lib/factory_girl/find_definitions.rb:19:in `block in find_definitions'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl-4.1.0/lib/factory_girl/find_definitions.rb:15:in `each'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl-4.1.0/lib/factory_girl/find_definitions.rb:15:in `find_definitions'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/factory_girl_rails-4.1.0/lib/factory_girl_rails/railtie.rb:26:in `block in <class:Railtie>'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:34:in `call'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/application/finisher.rb:60:in `block in <module:Finisher>'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/initializable.rb:30:in `run'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/initializable.rb:54:in `each'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/application.rb:136:in `initialize!'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/jeffreyerickatz/Desktop/sites/demo_app/config/environment.rb:5:in `<top (required)>'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/application.rb:103:in `require'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/application.rb:103:in `require_environment!'
from /Users/jeffreyerickatz/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.0/lib/rails/commands.rb:40:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
I get that error (above) when I try to run my rails console, or really do anything. I am assuming some of my gems are not compatible with each other? I am updating from rails 3.1 to rails 3.2.
I recently did a bundle update. This what everything was updated to:
Jeffreys-MacBook-Pro:demo_app jeffreyerickatz$ bundle update
Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/..
Using rake (10.0.2)
Using i18n (0.6.1)
Using multi_json (1.3.7)
Installing activesupport (3.2.0)
Using builder (3.0.4)
Installing activemodel (3.2.0)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Installing actionpack (3.2.0)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.4.4)
Installing actionmailer (3.2.0)
Using arel (3.0.2)
Using tzinfo (0.3.35)
Installing activerecord (3.2.0)
Installing activeresource (3.2.0)
Using annotate (2.5.0)
Using ansi (1.4.3)
Using xml-simple (1.1.2)
Using aws-s3 (0.6.3)
Using multi_xml (0.5.1)
Using httparty (0.9.0)
Using json (1.7.5)
Using nokogiri (1.5.5)
Using uuidtools (2.1.3)
Using aws-sdk (1.3.9)
Using bootstrap-sass (2.0.0)
Using will_paginate (3.0.3)
Using bootstrap-will_paginate (0.0.5)
Using bundler (1.1.5)
Using hsume2-state_machine (1.0.5)
Using call_center (0.1.7)
Using carmen (0.2.13)
Using clockwork (0.4.1)
Using cocaine (0.4.2)
Using coderay (1.0.8)
Using coffee-script-source (1.4.0)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using rdoc (3.12)
Using thor (0.14.6)
Installing railties (3.2.0)
Using coffee-rails (3.2.2)
Using diff-lcs (1.1.3)
Using factory_girl (4.1.0)
Using factory_girl_rails (4.1.0)
Using faker (1.1.2)
Using fakeweb (1.3.0)
Using foreman (0.60.2)
Using googlecharts (1.6.8)
Using listen (0.6.0)
Using lumberjack (1.0.2)
Using method_source (0.8.1)
Using slop (3.3.3)
Using pry (0.9.10)
Using guard (1.5.4)
Using guard-rspec (1.2.1)
Installing jquery-rails (2.1.4)
Using jwt (0.1.5)
Installing nested_form (0.3.1)
Using paperclip (3.3.1)
Using pg (0.14.1)
Using pry-nav (0.2.2)
Using pry-rails (0.2.2)
Installing rails (3.2.0)
Using rest-client (1.6.7)
Using rspec-core (2.7.1)
Using rspec-expectations (2.7.0)
Using rspec-mocks (2.7.0)
Using rspec (2.7.0)
Using rspec-rails (2.7.0)
Using ruby-graphviz (1.0.8)
Installing sass (3.2.3)
Using sass-rails (3.2.5)
Using simple_form (2.0.4)
Using spork (0.9.2)
Using sqlite3 (1.3.6)
Installing timecop (0.5.4)
Using turn (0.9.6)
Using twilio-ruby (3.9.0)
Using uglifier (1.3.0)
By the backtrace, it looks like line 1 of /Users/jeffreyerickatz/Desktop/sites/demo_app/spec/factories/user.rb is trying to load spec_helper.rb - you can safely remove this line, only specs should be requiring spec_helper.
I installed activerecord-sqlserver-adapter such that it appears in my local gems.
Running the command...
rails generate scaffold Tablename fieldname:fieldtype
returns an error (as below). I've rails 1.9.2 installed. Any guidance or assistance would be much appreciated. Thanks
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/dependencies.rb:251:in `require': Please install the sqlserver adapter: `gem install activerecord-sqlserver-adapter` (no such file to load -- active_record/connection_adapters/sqlserver_adapter) (LoadError)
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/dependencies.rb:251:in `block in require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/dependencies.rb:251:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:50:in `resolve_hash_connection'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:25:in `spec'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:129:in `establish_connection'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/railtie.rb:82:in `block (2 levels) in <class:Railtie>'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/lazy_load_hooks.rb:42:in `each'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/base.rb:721:in `<top (required)>'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/generators/named_base.rb:166:in `pluralize_table_names?'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/generators/named_base.rb:114:in `table_name'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/rails/generators/active_record/model/model_generator.rb:17:in `create_migration_file'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/task.rb:27:in `run'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:120:in `invoke_task'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `block in invoke_all'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `each'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `map'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `invoke_all'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/group.rb:238:in `dispatch'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:109:in `invoke'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/group.rb:281:in `block in _invoke_for_class_method'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/shell.rb:74:in `with_padding'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/group.rb:270:in `_invoke_for_class_method'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/group.rb:150:in `_invoke_from_option_orm'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/task.rb:27:in `run'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:120:in `invoke_task'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `block in invoke_all'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `each'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `map'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `invoke_all'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/group.rb:238:in `dispatch'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/base.rb:425:in `start'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/generators.rb:171:in `invoke'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-.2.8/lib/rails/commands/generate.rb:12:in `<top (required)>'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/dependencies.rb:251:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/dependencies.rb:251:in `block in require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-.2.8/lib/active_support/dependencies.rb:251:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:29:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
* LOCAL GEMS *
actionmailer (3.2.8, 3.1.0, 2.2.3)
actionpack (3.2.8, 3.1.0, 2.2.3)
activemodel (3.2.9, 3.2.8, 3.1.0)
activerecord (3.2.8, 3.1.0)
activerecord-sqlserver-adapter (3.2.10, 3.1.7)
activeresource (3.2.8, 3.1.0)
activesupport (3.2.9, 3.2.8, 3.1.0, 2.2.3)
ansi (1.4.3, 1.3.0)
archive-tar-minitar (0.5.2)
arel (3.0.2, 2.2.1)
bcrypt-ruby (3.0.1 x86-mingw32)
builder (3.0.4, 3.0.0)
bundler (1.2.1)
coffee-rails (3.2.2, 3.1.1)
coffee-script (2.2.0)
coffee-script-source (1.4.0, 1.1.2)
columnize (0.3.6)
erubis (2.7.0)
execjs (1.4.0, 1.2.9)
ffi (1.1.5)
hike (1.2.1)
i18n (0.6.1, 0.6.0)
journey (1.0.4)
jquery-rails (2.1.4, 2.1.3, 1.0.14)
json (1.7.5, 1.6.1)
linecache19 (0.5.12)
mail (2.4.4, 2.3.0)
mime-types (1.19, 1.16)
minitest (4.1.0, 3.5.0, 3.4.0, 1.6.0)
multi_json (1.4.0, 1.3.7, 1.3.6, 1.0.3)
nokogiri (1.5.5 x86-mingw32)
polyglot (0.3.3, 0.3.2)
rack (1.4.1, 1.3.4)
rack-cache (1.2, 1.0.3)
rack-mount (0.8.3)
rack-ssl (1.3.2)
rack-test (0.6.2, 0.6.1)
rails (3.2.8, 3.1.0)
railties (3.2.8, 3.1.0)
rake (10.0.2, 10.0.1, 0.9.2.2, 0.9.2, 0.8.7)
rdiscount (1.6.8)
rdoc (3.12, 3.10, 2.5.8)
ruby-debug-base19 (0.11.25)
ruby-debug-ide (0.4.16)
ruby-debug19 (0.11.6)
ruby_core_source (0.1.5)
sass (3.2.3, 3.1.10)
sass-rails (3.2.5, 3.1.4)
sprockets (2.1.3, 2.0.2)
sqlite3 (1.3.6 x86-mingw32, 1.3.4 x86-mingw32)
sqlite3-ruby (1.3.3)
thor (0.16.0, 0.14.6)
tilt (1.3.3)
tiny_tds (0.5.1 x86-mingw32)
tmail (1.2.7.1)
treetop (1.4.12, 1.4.11, 1.4.10)
turn (0.9.6, 0.8.3)
tzinfo (0.3.35, 0.3.30)
uglifier (1.3.0, 1.0.3)
win32-sound (0.5.0)
Is the gem listed in your Gemfile?
Add to your gemfile (gem manual)
gem 'tiny_tds'
gem 'activerecord-sqlserver-adapter', '~> 3.1.0'
and run bundle install again
Finally resolved this. To fix I uninstalled 2 conflicting versions of activerecord-sqlserver-adapter, installed ruby-odbc gem, installed activerecord-sqlserver-adapter, tweaked the gemfile to reflect correct versions then ran bundle update, then bundle install and lastly the rails generate scaffold... command.
I have spent hours upon days trying to resolve this.
Rake is throwing the following error:
dcarpenter$ rake
rake aborted!
uninitialized constant ActionView::Helpers::JavaScriptProxy
I can't seem to find anyone who has had this issue on Google, this site or elsewhere.
What steps should I take to resolve this and what do I need to know?
rake --trace yields:
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/ext/module.rb:36:in `const_missing'
/Users/dcarpenter/Dropbox/workspace/gems/jrails-0.6.0/lib/jrails.rb:231:in `<module:Helpers>'
/Users/dcarpenter/Dropbox/workspace/gems/jrails-0.6.0/lib/jrails.rb:2:in `<module:ActionView>'
/Users/dcarpenter/Dropbox/workspace/gems/jrails-0.6.0/lib/jrails.rb:1:in `<top (required)>'
/Users/dcarpenter/Dropbox/workspace/gems/bundler-1.0.17/lib/bundler/runtime.rb:68:in `require'
/Users/dcarpenter/Dropbox/workspace/gems/bundler-1.0.17/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/Users/dcarpenter/Dropbox/workspace/gems/bundler-1.0.17/lib/bundler/runtime.rb:66:in `each'
/Users/dcarpenter/Dropbox/workspace/gems/bundler-1.0.17/lib/bundler/runtime.rb:66:in `block in require'
/Users/dcarpenter/Dropbox/workspace/gems/bundler-1.0.17/lib/bundler/runtime.rb:55:in `each'
/Users/dcarpenter/Dropbox/workspace/gems/bundler-1.0.17/lib/bundler/runtime.rb:55:in `require'
/Users/dcarpenter/Dropbox/workspace/gems/bundler-1.0.17/lib/bundler.rb:120:in `require'
/Users/dcarpenter/Dropbox/workspace/BlueFusion/config/application.rb:9:in `<top (required)>'
/Users/dcarpenter/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/dcarpenter/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/dcarpenter/Dropbox/workspace/BlueFusion/Rakefile:4:in `<top (required)>'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in `load'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/application.rb:495:in `raw_load_rakefile'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/application.rb:78:in `block in load_rakefile'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/application.rb:77:in `load_rakefile'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/application.rb:61:in `block in run'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/bin/rake:32:in `<top (required)>'
/Users/dcarpenter/.rvm/rubies/ruby-1.9.2-p290/bin/rake:19:in `load'
/Users/dcarpenter/.rvm/rubies/ruby-1.9.2-p290/bin/rake:19:in `<main>'
gem list yields:
abstract (1.0.0)
actionmailer (3.1.0.rc5, 3.0.9)
actionpack (3.1.0.rc5, 3.0.9)
activemodel (3.1.0.rc5, 3.0.9)
activerecord (3.1.0.rc5, 3.0.9)
activeresource (3.1.0.rc5, 3.0.9)
activesupport (3.1.0.rc5, 3.0.9)
addressable (2.2.6)
arel (2.1.4, 2.0.10)
barby (0.4.3)
bcrypt-ruby (2.1.4)
builder (3.0.0, 2.1.2)
bundler (1.0.17)
chunky_png (1.2.1)
compass (0.11.5)
erubis (2.7.0, 2.6.6)
faraday (0.7.4)
faraday_middleware (0.7.0)
fssm (0.2.7)
hashie (1.0.0)
hike (1.2.0)
i18n (0.6.0, 0.5.0)
jrails (0.6.0)
json (1.5.3)
jwt (0.1.3)
koala (1.1.0)
linkedin (0.3.1)
mail (2.3.0, 2.2.19)
mime-types (1.16)
multi_json (1.0.3)
multi_xml (0.2.2)
multipart-post (1.1.3)
mysql2 (0.2.11)
oauth (0.4.5)
polyglot (0.3.2)
pr_geohash (1.0.0)
rack (1.3.2, 1.2.3)
rack-cache (1.0.2)
rack-mount (0.8.2, 0.6.14)
rack-ssl (1.3.2)
rack-test (0.6.1, 0.5.7)
rails (3.1.0.rc5)
railties (3.1.0.rc5)
rake (0.9.2, 0.8.7)
rdoc (3.9.2)
sass (3.1.7)
simple_oauth (0.1.5)
sprockets (2.0.0.beta.13)
thor (0.14.6)
tilt (1.3.2)
treetop (1.4.10)
twilio-ruby (3.3.0)
twitter (1.6.1)
tzinfo (0.3.29)
Just for the sake of saying, jrails is not complatible with Rails 3 and the project is basically dead since 2009. If you are on Rails 3 you should use the jquery-ujs gem that kind of fills in the hole jrails used to get into.
This does not mean it's just going to work, but it's the first step of you really want to move on to Rails 3.