Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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.

Follow the same procedure as mentioned above.... But for me Rails didn't work.

rails new "project name" worked for me.

Thanks

I had this problem because my project had spaces in the name. Removed the spaces and it worked.

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.

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.

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top