Cuba's answer Libra got me halfway. Another piece of the puzzle that I was able to get from Ask Ubuntu .
Below are the steps for viewing gem code in gedit using Ubuntu.
a. From the command line:
gnome-open $(bundle show [gem-name])
b. This will open a catalog of gems in nautilus. From there, simply double-click the file you want to see, and it will open in gedit.
source share