开发者

Cannot create a new Rails Project with Aptana Studio 3

I've installed Aptana Studio 3 today, and been trying to create a new Rails Project.

But nothing is being creat开发者_如何转开发ed...

I can see in the commandline it is running "rails ." instead of "rails new ." .

Any suggestion?

I'm Using:

  • Windows 7
  • rails 3.0.9
  • ruby 1.9.2p180

Thanks, Keren


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜