I did a bundle show and get the complete path to a gem directory.
bundle show
Unfortunately, I removed the directory using rm -r gem_path. Then my rails ap
rm -r gem_path
From project directory in terminal
gem uninstall gem_name