Use rails new, rather than RubyMine to generate the initial rails template.