Mohamed Hatem Abdu
Mohamed Hatem Abdu

Reputation: 468

Rails -v command gives me rails isn't installed

However rails -v command gives me rails isn't installed,i found rails gem in this path /bundle/ruby/1.9.1/gems

Upvotes: 0

Views: 786

Answers (1)

Roope Hakulinen
Roope Hakulinen

Reputation: 7405

Sounds quite obvious that you should then add /bundle/ruby/1.9.1/gems to your PATH for it to be available as "global" command. This can be done with something like

cd /bundle/ruby/1.9.1/gems/rails-3.0.20/bin/rails
export PATH=$PATH:.

Upvotes: 1

Related Questions