Reputation: 996
I would like to open up and edit gem source code but I can't figure out how to in cloud 9.
Stack Overflow wants me to make this question longer but it really is that simple. Where is the damn code at?
Upvotes: 1
Views: 137
Reputation: 5522
You can find the location of gems by issuing one of the following commands:
rvm gemdir
gem environment
(look for the gem path)Upvotes: 1
Reputation:
Cloud9 operates like any other terminal. The following is helpful if the gem has a unique name, as you will get fewer (better) results. I will use will_paginate
for example:
sudo locate will_paginate
Since Cloud9 comes packaged with light permissions for the main user, you will benefit most from using sudo
like above.
On my machine, the results include sub-directories in the two following locations:
/home/hstevens/.gem/ruby/gems/will_paginate-3.0.7
/usr/local/lib/ruby/gems/1.9.1/gems/will_paginate-3.0.7
Depending on whether you installed your gem as root or not, your results should include one or both of the above locations. (Actual paths may vary slightly.)
Upvotes: 1