Topic: rails new blog not working

I've installed rails in a number of different ways how, and this problem still haunts me -
rails new blog creates two folders like blog, called new and blog instead of just creating one new app called blog...
why is this? what is going on? I'm starting to get really fed up now It's been like 2 weeks searching forums in my spare time and trying to figure this out...

ben@acer-e817fae0d9:/var/www/rails$ rails new blog
      create  
      create  app/controllers
      create  app/helpers
      create  app/models
      create  app/views/layouts
      create  config/environments
      create  config/initializers
      create  config/locales
      create  db
      create  doc
      create  lib
      create  lib/tasks
      create  log
      create  public/images
      create  public/javascripts
      create  public/stylesheets
      create  script/performance
      create  script/process
      create  test/fixtures
      create  test/functional
      create  test/integration
      create  test/performance
      create  test/unit
      create  vendor
      create  vendor/plugins
      create  tmp/sessions
      create  tmp/sockets
      create  tmp/cache
      create  tmp/pids
      create  Rakefile
      create  README
      create  app/controllers/application.rb
      create  app/helpers/application_helper.rb
      create  test/test_helper.rb
      create  test/performance/browsing_test.rb
      create  config/database.yml
      create  config/routes.rb
      create  config/initializers/inflections.rb
      create  config/initializers/mime_types.rb
      create  config/initializers/new_rails_defaults.rb
      create  config/locales/en.yml
      create  config/boot.rb
      create  config/environment.rb
      create  config/environments/production.rb
      create  config/environments/development.rb
      create  config/environments/test.rb
      create  script/about
      create  script/console
      create  script/dbconsole
      create  script/destroy
      create  script/generate
      create  script/performance/benchmarker
      create  script/performance/profiler
      create  script/performance/request
      create  script/process/reaper
      create  script/process/spawner
      create  script/process/inspector
      create  script/runner
      create  script/server
      create  script/plugin
      create  public/dispatch.rb
      create  public/dispatch.cgi
      create  public/dispatch.fcgi
      create  public/404.html
      create  public/422.html
      create  public/500.html
      create  public/index.html
      create  public/favicon.ico
      create  public/robots.txt
      create  public/images/rails.png
      create  public/javascripts/prototype.js
      create  public/javascripts/effects.js
      create  public/javascripts/dragdrop.js
      create  public/javascripts/controls.js
      create  public/javascripts/application.js
      create  doc/README_FOR_APP
      create  log/server.log
      create  log/production.log
      create  log/development.log
      create  log/test.log
      create  
      create  app/controllers
      create  app/helpers
      create  app/models
      create  app/views/layouts
      create  config/environments
      create  config/initializers
      create  config/locales
      create  db
      create  doc
      create  lib
      create  lib/tasks
      create  log
      create  public/images
      create  public/javascripts
      create  public/stylesheets
      create  script/performance
      create  script/process
      create  test/fixtures
      create  test/functional
      create  test/integration
      create  test/performance
      create  test/unit
      create  vendor
      create  vendor/plugins
      create  tmp/sessions
      create  tmp/sockets
      create  tmp/cache
      create  tmp/pids
      create  Rakefile
      create  README
      create  app/controllers/application.rb
      create  app/helpers/application_helper.rb
      create  test/test_helper.rb
      create  test/performance/browsing_test.rb
      create  config/database.yml
      create  config/routes.rb
      create  config/initializers/inflections.rb
      create  config/initializers/mime_types.rb
      create  config/initializers/new_rails_defaults.rb
      create  config/locales/en.yml
      create  config/boot.rb
      create  config/environment.rb
      create  config/environments/production.rb
      create  config/environments/development.rb
      create  config/environments/test.rb
      create  script/about
      create  script/console
      create  script/dbconsole
      create  script/destroy
      create  script/generate
      create  script/performance/benchmarker
      create  script/performance/profiler
      create  script/performance/request
      create  script/process/reaper
      create  script/process/spawner
      create  script/process/inspector
      create  script/runner
      create  script/server
      create  script/plugin
      create  public/dispatch.rb
      create  public/dispatch.cgi
      create  public/dispatch.fcgi
      create  public/404.html
      create  public/422.html
      create  public/500.html
      create  public/index.html
      create  public/favicon.ico
      create  public/robots.txt
      create  public/images/rails.png
      create  public/javascripts/prototype.js
      create  public/javascripts/effects.js
      create  public/javascripts/dragdrop.js
      create  public/javascripts/controls.js
      create  public/javascripts/application.js
      create  doc/README_FOR_APP
      create  log/server.log
      create  log/production.log
      create  log/development.log
      create  log/test.log
ben@acer-e817fae0d9:/var/www/rails$ ls
blog  new  railsNotes.rb
ben@acer-e817fae0d9:/var/www/rails$ 

I'm using Ubuntu 10.04 LTS

Last edited by marsters256 (2012-03-23 12:57:43)

Re: rails new blog not working

btw I realise I can go

./scripts/generate 


etc to get things working but I don't want to do this because I want to follow along with guides.

Re: rails new blog not working

Which version of Rails are you using? If you're using Rails 2, then you shouldn't have "new" in your statement; you only type "Rails Blog" to create an app called "Blog"

Last edited by Brian71 (2012-03-23 15:32:04)

Re: rails new blog not working

If  you have the rails version that comes from the Ubuntu repository you are running version 2.  If you want version 3 of ROR uninstall it, download (not from the Ubuntu repository) a late version of gem and gem install rails

Re: rails new blog not working

Or even better, get RVM so that you can install different versions of Ruby and Rails for different projects. Handy if you are learning and following different tutorials so that you can match the versions in the tutorials.
Here's some good links on the topic:
http://blog.sudobits.com/2011/10/27/how … ntu-11-10/
http://www.unfoldingcode.com/2011/05/us … buntu.html
http://rails.vandenabeele.com/blog/2011 … 11-dot-10/

Re: rails new blog not working

+1 on using rvm

What you want and what you need are too often not the same thing!
When your head is hurting from trying to solve a problem, stop standing on it. When you are the right way up you will see the problem differently and you just might find the solution.
(Quote by me 15th July 2009)

Re: rails new blog not working

Thanks all for your comments and contrib - I now have rvm installed, and my head is further down the rabbit hole with this whole thing smile
I'm now having a problem with rvm use command not working ... but I'll make a new post
I'm aiming to use newest stable rails and ruby - is this a good idea?

Re: rails new blog not working

You should always learn with the latest STABLE release of the version that the tutorial is using.

What you want and what you need are too often not the same thing!
When your head is hurting from trying to solve a problem, stop standing on it. When you are the right way up you will see the problem differently and you just might find the solution.
(Quote by me 15th July 2009)

Re: rails new blog not working

Still not working

 
username@computer:/var/www/folder$ rvm use 1.9.3

RVM is not a function, selecting rubies with 'rvm use ...' will not work.

- I've added the line to my .bashrc but still no luck

Re: rails new blog not working

rvm is not being found in your path properly
Are you sure you followed the correct installation instructions for your OS?
Begin Rescue End website (http://beginrescueend.com/rvm/basics/) states

Post Install Configuration

The rvm installation documentation instructs you to put the following line at the very end of your bash profile:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.

NOTE: This is for a user install. If you installed as root then you substitute '$HOME/.rvm' with '/usr/local/rvm'.

What you want and what you need are too often not the same thing!
When your head is hurting from trying to solve a problem, stop standing on it. When you are the right way up you will see the problem differently and you just might find the solution.
(Quote by me 15th July 2009)