Re: [Rails] problems following this tutorial

18 views
Skip to first unread message

Colin Law

unread,
Sep 4, 2012, 8:07:27 AM9/4/12
to rubyonra...@googlegroups.com
On 3 September 2012 19:12, roelof <rwo...@hotmail.com> wrote:
> Hello,
>
> I try to follow this tutorial :
> http://guides.rubyonrails.org/getting_started.html
> But when I do rails generate controller home index I get this output :
> [code]
> Usage :
> rails new APP_PATH [options]
> [/code]

Are you in the top level folder of a rails app when you run that
command? You should be. If not then the only valid rails command is
rails new ....

Colin

roelof

unread,
Sep 4, 2012, 9:13:07 AM9/4/12
to rubyonra...@googlegroups.com, cla...@googlemail.com

Op dinsdag 4 september 2012 14:08:23 UTC+2 schreef Colin Law het volgende:
I think so. Im working with Railsinstaller on Win7.
And I'm working in the c:/railsinstaller/ruby.1.9.3 directory.
 
Roelof
 

Carlos Augusto Borges

unread,
Sep 4, 2012, 4:31:28 PM9/4/12
to rubyonra...@googlegroups.com
I think so. Im working with Railsinstaller on Win7.
And I'm working in the c:/railsinstaller/ruby.1.9.3 directory.

Oh no... That's Rails' main directory not your App's directory. The first step should be the app's creation with:
rails new application_name

Than you should change your directory to the application's directory with:
cd application_name

Now the other rails commands should be available.

 
Roelof
 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/eFQx4P0kLw4J.

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

7stud --

unread,
Sep 4, 2012, 6:34:00 PM9/4/12
to rubyonra...@googlegroups.com
...as stated in the tutorial here:


3.2 Creating the Blog Application
To begin, open a terminal, navigate to a folder where you have rights to
create files, and type:

$ rails new blog
This will create a Rails application called Blog in a directory called
blog.

You can see all of the switches that the Rails application builder
accepts by running rails new -h.

After you create the blog application, switch to its folder to continue
work directly in that application:

$ cd blog <---*****DID YOU DO THAT???

--
Posted via http://www.ruby-forum.com/.
Reply all
Reply to author
Forward
0 new messages