Hi, I''ve just installed Rails v3.0.5 and reading the guide http://guides.rubyonrails.org/getting_started.html#creating-a-new-rails-project. Where it says to do: rails new blog that actually creates a site in a folder called "new". I also tried a couple of generators, `rails generate devise:install` created a folder called "generate", and so on. This is the first line of output from `rails -h`: Usage: /usr/bin/rails /path/to/your/app [options] Which explains why I''m getting these folders created, but not why the guides would tell me something different. I''m wondering if I''m doing something incredibly stupid. If I am feel free to point it out, it''s just par for the course. Any help is much appreciated Iain -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hassan Schroeder
2011-Mar-21 22:54 UTC
Re: New Rails user, slightly confused by `rails` command
On Mon, Mar 21, 2011 at 1:52 PM, yb <iainspeed-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''ve just installed Rails v3.0.5 and reading the guide > http://guides.rubyonrails.org/getting_started.html#creating-a-new-rails-project. > Where it says to do: > > rails new blog > > that actually creates a site in a folder called "new".That means you have (at least) two different versions of Rails on your system, and the first one being found is pre-3.0.x. Try `rails -v` and `which rails` for starters... -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Iain Barnett
2011-Mar-22 11:33 UTC
Re: New Rails user, slightly confused by `rails` command
On 21 Mar 2011, at 22:54, Hassan Schroeder wrote:> On Mon, Mar 21, 2011 at 1:52 PM, yb <iainspeed-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> I''ve just installed Rails v3.0.5 and reading the guide >> http://guides.rubyonrails.org/getting_started.html#creating-a-new-rails-project. >> Where it says to do: >> >> rails new blog >> >> that actually creates a site in a folder called "new". > > That means you have (at least) two different versions of Rails on your > system, and the first one being found is pre-3.0.x. > > Try `rails -v` and `which rails` for starters...That was it. I now have a vague recollection of having installed Rails a couple of years ago. The rogue binary was in /usr/bin. I should not forget that lazy assumptions (like, I don''t have rails installed already) will bite me on the arse! Thanks very much. Iain -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.