The best way to view the source code of a gem

I believe that the source code for viewing open source libraries used in projects is invaluable. Unfortunately, I find this difficult when developing with a ruby ​​on rails. I'm used to working inside the IDE, which allows me to move on to character definitions, regardless of whether they are part of an external library.

I am using Aptana Studio 3 on Mac OS X for development, but I want to change the IDE for this feature.

I studied https://github.com/fnando/gem-open as an option, but have not yet found a good editor to integrate this. Can anyone recommend? Does anyone have a good method of viewing gem sources?

+3
source share
1 answer

Aptana Studio 3 has a command line launcher: studio3.

Add to your ~/.bash_profilefollowing:

export PATH="/Applications/Aptana Studio 3:$PATH"
export GEM_EDITOR="studio3"

Reload the existing shell environment: . ~/.bash_profileand then you can use gem-open with your preferred editor:gem open rails

0
source

All Articles