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

rails server worked the first time and now...

Now it give me a list of options instead of starting the server. I tried to redo the tutorial on treebook by directing the treebook to the the project directory.

3 Answers

Probably because you were not in the directory of your rails app. If my app is located in "Sites/Projects/myapp", then when opening a terminal you have to cd into it then run rails server.

The commands are:

cd Sites/Projects/myapp
rails s (shortcut for rails server)

If instead you do:

cd Sites/Projects (notice I'm not in my rails app)
rails s

The terminal will give you options because there is not rails app there and needs you to create one first.

It is working now. I'm not sure what was happening but I added a "/" at the end of commands like cd projects/

Thank you, it seems to work with or with out the slashes sometimes if the directory commands are entered in individually.

such as:

cd Sites

then

cd Projects

then

cd myapp

then

rails server