Cannot create a new Rails Project with Aptana Studio 3

杀马特。学长 韩版系。学妹 提交于 2019-12-01 09:23:26

This sounds like it thinks you have rails v2 installed, since it's using the old command format. Try testing what version of ruby and rails Aptana is finding on your PATH inside it's Terminal view (Window > Show View > Terminal), by running ruby -v and rails -v.

Thanks all for your help.

Eventually problem was that I installed ruby 1.9.2 without removing the old ruby I had on my computer (and the same was for rails). So running ruby -v and rails -v showed the right version, but Aptana was somehow connected to the old version.

I had to uninstall both ruby and Aptana from my computer, then install the new ruby, new rails and then Aptana.

What I did was from the terminal within aptana IDE, created the folder for the application (as aptana does not do this since 'rails new fails') ran the command below

alias rails='C:/RailsInstaller/Ruby1.9.3/bin/rails'

and then navigated inside the folder and typed in

rails new .

alternatively I won't have to create a folder, set the alias and type

rails new myapp

Hope this helps anybody else looking for the same information.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!