Reputation: 449
I am using Windows 7 and Ruby 1.8.7. I get the following error message when I start a new Rails project:
Problem Occured
'Replace project index file' has encountered a problem. Resource '/Foobar/public' does not exist. (where 'Foobar' is the name of my new project).
Any ideas?
Upvotes: 1
Views: 3885
Reputation: 51
Changing the interpreter that the IDE uses worked for me. Go to windows->preferences->ruby->installed interpreters
then select the one that comes with your installation of Aptana Studio, mine's name is org.jruby_1.2.0.9
... It worked like a charm for me. I hope that helped.
Upvotes: 0
Reputation: 11
I've the same problem but in web projects and using a network directory. I create the project in local and then move it to network unity.
Upvotes: 1
Reputation: 5588
I had this problem because my project had spaces in the name. Removed the spaces and it worked.
Upvotes: 1
Reputation: 1909
When new project is created using radrails, RadRails execute the command rails beta -d sqlite3 which is older syntax and the new syntax is rails new beta -d sqlite3 So unless the Aptana Teams invokes new rails functionality the workaround would be to use the methods mentioned above.
Upvotes: 2
Reputation: 29739
Try running your IDE as an administrator. Right click your IDE icon -> "Run as administrator". Now your IDE will have the appropriate privileges to write files and folders.
Upvotes: 0
Reputation: 11
Follow the same procedure as mentioned above.... But for me Rails didn't work.
rails new "project name" worked for me.
Thanks
Upvotes: 1
Reputation: 449
Just found a workaround: Create the project but UNCHECK the part about generating a rails skeleton. Then open a console, navigate to the project's parent directory, and run rails <project name>
. The skeleton will generate in the folder, and then you can refresh the project directory within Aptana/Eclipse.
Upvotes: 3