Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails Gem Issue

I just installed Rails 3.2.1 with Ruby 1.9.3p0

davesahil@sahil-pc:~$ gem list rails

*** LOCAL GEMS ***

rails (3.2.1)

$rails --version gives me this

/home/davesahil/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:314:in `bin_path': can't find gem rails ([">= 0"]) with executable rails (Gem::GemNotFoundException)
    from /home/davesahil/.rvm/gems/ruby-1.9.3-p0/bin/rails:19:in `<main>'

Its been a while since I last worked on rails. Am I missing something over here?

like image 930
Sahil Dave Avatar asked Feb 20 '12 19:02

Sahil Dave


1 Answers

I had the same problem with rails 3.2.1 and ruby 1.8.7. The following worked for me :

sudo gem install railties
like image 155
Sebi Avatar answered Nov 01 '22 13:11

Sebi