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

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.

Leave a Reply

Your email address will not be published. Required fields are marked *