Topic: rails -v gives error

gem list

says I have
rails(2.3.5,  2.3.2)
but when i run

rails -v

it gives error
/usr/local/lib/site_ruby/1.8/rubygems.rb:578:in `report_activate_error': Could not find RubyGem test-spec (>= 0) (Gem::LoadError)
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:134:in `activate'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:158:in `activate'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:157:in `each'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:157:in `activate'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:158:in `activate'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:157:in `each'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:157:in `activate'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:158:in `activate'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:157:in `each'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:157:in `activate'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:49:in `gem'
    from /usr/bin/rails:18

posible solutions ?

Re: rails -v gives error

Your problem is that you don't have test-spec. Run bundler first.