title: Generating a better ctags file for Rails projects
body: <p>How can I generate a good ctags file for a rails project ? One that includes all the gems, ruby libs and sorts them in the right order (like when you search for “Rails” it doesn’t go to the airbrake gem or whatever)</p>
  
  <p>I'm using this right now, but I don't like it for the reason mentioned above:</p>
  
  <pre><code>ctags --tag-relative -Rf.git/tags.$$ --exclude=.git --exclude=*.html --exclude=tmp --exclude=public --exclude=app/assets --languages=-javascript,js,sql,html `bundle show --paths` $MY_RUBY_HOME .
  </code></pre>