Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

directory error in creating a new app

I have recently installed ruby on rails and was able to see ruby up on localhost:3000.

I have pathways that are messed up, I am getting an error

Can't initialize a new Rails application within the directory of another, please change to a non-Rails directory first.

I am on Mac, please help me out.

1 Answer

Daniel Cunningham
Daniel Cunningham
21,109 Points

If I'm understanding the problem correctly, you're trying to create a new project while you are in the directory of another rails project.

You can use the terminal to "back out" of the directory and create a new project using the "Rails New" command.

If the server is still running, use "Ctrl - C" to shut down the server.