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] I have Ruby version 1.9.3 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/3YRXVinfkH0J. For more options, visit https://groups.google.com/groups/opt_out.
On 3 September 2012 19:12, roelof <rwobben-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> 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 -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Op dinsdag 4 september 2012 14:08:23 UTC+2 schreef Colin Law het volgende:> > On 3 September 2012 19:12, roelof <rwo...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org <javascript:>> > 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 .... >I think so. Im working with Railsinstaller on Win7. And I''m working in the c:/railsinstaller/ruby.1.9.3 directory. 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
> > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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. > > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
...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/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.