Normally, a project in RubyMine has the same name as its root folder. So the easiest way to change the name of a project is just rename its root folder.
However, you can use the main menu command . Note that the name of the project root folder is left intact! Mind that in case of several open projects, you can rename the primary project only.