#5 Getting Up and Running

http://guides.rubyonrails.org/getting_started.html#getting-up-and-running
create a controller called PostsController. You can do this by running this command:
`

`

$ rails g controller posts

That results in an error.

rails g controller posts
Usage:
rails new APP_PATH [options]

Options:

What am I missing?

It looks like your current directory is not a rails app - cd to the right place before running rails g controller …

Fred

or maybe you missed a step…

creating a rails app… with the command

rails new [app_name]

that creates your aplication directory called [app_name]

inside this directory that you run all the others steps…