Search code examples
ruby-on-railsrubygems

How to tell which version of a gem a rails app is using


I'm investigating a rails app - the prod server has two version of a specific gem installed, how can I tell which version the prod app is using?


Solution

  • In recent versions of Rails, use bundle info $gemname.

    In Rails 2, rake gems will print out what gems, dependencies, and versions are installed, frozen, etc.