title: Can I edit the gem installed using 'gem install' or from my gemfile?
body: <p>On my server (or laptop for that matter) whenever I install a gem using:</p>
  
  <pre><code>gem install mygemname
  </code></pre>
  
  <p>or in my gemfile:</p>
  
  <pre><code>gem 'mygemname'
  </code></pre>
  
  <p>It will install on the computer to some folder on my computer.</p>
  
  <p><strong>Can I go to that folder and edit the file if I want to say add some logging etc.?</strong></p>
  
  <p>If this is not possible, I remember reading that you can have the gem source code installed in your rails 3 application under the 'vendor' folder.  How do I install it locally so I can edit it and add logging to it (to learn how it works etc.)</p>