0

I have a Rails 2.x application, and when I am on the server that hosts the application how can I list the gems that it uses?

I started using rails in 3.x and I didn't realize there is no gemfile in rails 2.x

Blankman
  • 259,732
  • 324
  • 769
  • 1,199

2 Answers2

3

The only place where listing of Gemfile can be is application.rb file in applications build in rails 2.x framework other than that there is no other place it can be defined. One command that you can try is:

gem list
A. KUMAR
  • 330
  • 1
  • 9
  • gem list command lists all installed gem packages on the system. To see all gem packages used in a Ruby on Rails application we can open the Gemfile file located in the root folder of the application or running the bundle list command in the root folder of the application. – gyousefi Aug 29 '19 at 17:11
2

How to list gems used in a rails 2.x application

As answered here, gem list will show only the gems installed using the --system option (see accepted answer and Caspar comment); use bundle list instead, to show gems installed in the application directory

Mayur Shah
  • 3,344
  • 1
  • 22
  • 41
  • @Blankman Can you please tell me why my answer is not vote up or not corrected, I believe that my answer is correct – Mayur Shah Aug 01 '17 at 04:09