Skip to content
mengfung.com
writing

Find remote version of rails instead of everything with rails in it “gem list rails -r”

 ·  1 min read

Ever run “gem list rails -r” just to get a list of all gems with “rails” in it. When you were just wondering what’s the latest version of rails on the remote server is.

gem list -r | grep -i "^rails "

This will get your what you want.