#5 Getting Up and Running

create a controller called PostsController. You can do this by running

$ rails g controller posts

That results in an error.

rails g controller posts
rails new APP_PATH [options]


What am I missing?

On Thursday, November 21, 2013 3:46:12 AM UTC, Garrett S. wrote:

What am I missing?

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


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…

On Thu, Nov 21, 2013 at 8:54 PM, Frederick C. <

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs