#5 Getting Up and Running

18 views
Skip to first unread message

Garrett Smith

unread,
Nov 20, 2013, 10:46:12 PM11/20/13
to rubyonra...@googlegroups.com
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?

Frederick Cheung

unread,
Nov 21, 2013, 5:54:50 PM11/21/13
to rubyonra...@googlegroups.com

On Thursday, November 21, 2013 3:46:12 AM UTC, Garrett Smith wrote:
$ 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

Carlos Figueiredo

unread,
Nov 21, 2013, 6:07:23 PM11/21/13
to rubyonra...@googlegroups.com
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...

 


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5995d7d0-cd82-4d54-b24a-e0cfcd3f0faf%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages