How do you configure RadRails to use Rails installed through RVM?
Asked Answered
H

6

8

How do I properly setup Aptana RadRails if I've installed Rails through RVM?

I followed the install on http://railstutorial.org/ but my script paths don't work: e.g.:

  • 'rails' path: /home/marius/.rvm/gems/ruby-1.8.7-p302@rails3gemset/bin/rails
  • Detected path: Not Detected
Halftimbered answered 8/12, 2010 at 15:32 Comment(1)
Got any luck..? I am also having the same problem...Sarabia
U
1

After installing ruby through rvm, I was able to get eclipse to use that install by:

In Eclipse, go to Window -> Preferences.
In the Ruby/Interpreters tab click "Search"

For me this found all of the ruby installs from rvm, and it added them to the interpreters list. I edited the "Name" field to include the version number for convenience.

Uncloak answered 23/8, 2011 at 19:3 Comment(0)
N
1

try to run this in the command line. It will show you real path to the available rail script for current environment.

$ which rails

Northwest answered 17/2, 2011 at 19:8 Comment(0)
U
1

After installing ruby through rvm, I was able to get eclipse to use that install by:

In Eclipse, go to Window -> Preferences.
In the Ruby/Interpreters tab click "Search"

For me this found all of the ruby installs from rvm, and it added them to the interpreters list. I edited the "Name" field to include the version number for convenience.

Uncloak answered 23/8, 2011 at 19:3 Comment(0)
S
1

In Aptana Studio 3 (build: 3.0.8.201201201658) there is no Window -> preferences. If you have a .rvmrc in your project work directory, stating for instance:

rvm use ruby-1.9.3-p0@mygemset

... then Aptana should pick up the correct environment; in this case using ruby-1.9.3-p0 with gemset mygemset. Don't forget to run build install or build update (when you updated your Gemfile) from your project working directory path.

I must add that Aptana Studio 3 seems a bit buggy when it comes to picking up the correct environment, especially when trying to use ruby-debug-ide19.

Stream answered 13/2, 2012 at 10:22 Comment(0)
C
0

Did you try with just /home/marius/.rvm/gems/ruby-1.8.7-p302/bin/rails ?

Calica answered 15/2, 2011 at 2:47 Comment(0)
S
0

You have to run eclipse/aptana from a terminal session.

Signature answered 27/5, 2011 at 0:41 Comment(0)
M
0

Without RVM :

Please type command whereis ruby in console. you will get the path like /usr/bin/ruby or /usr/local/bin/ruby to check which is correct interpreter path /usr/bin/ruby -v if you get version. that is your interpreter.

With RVM :

Please type command: rvm info

binaries:
    ruby: "/home/<USERNAME>/.rvm/rubies/ruby-2.0.0-p247/bin/ruby"

copy this path and paste wherever you need enter you interpreter path.

It worked for me. and I hope it will help others as well.

Cheers!

Mccaslin answered 12/2, 2014 at 8:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.