menu
In your session, it's necessary to set the editor for opening files using this export command:

export EDITOR= 

Afterward, to open the gem files, use the following command:
 
bundle open

This action allows you to open any gem within your Rails project, enabling you to explore its internals and understand the current flow, helping you solve any issues related to it.