Rails application generator fails after installing version 3.beta4

Stewart
Thu, 17 Jun 2010 15:00:21 -0000

Hi,

I have some free time today so I am having a look at beta4 of rails3.
I am using RVM and just installed ruby version...

ruby 1.9.2dev (2009-07-18 trunk 24186) [i386-darwin9.8.0]

I installed rails too with no problem. When I try and generate a new
application I get the following output


~/code/rails $ rails new rails3_test --skip-git
      create
      create  README
      create  Rakefile
      create  config.ru
      create  Gemfile
      create  app
      create  app/controllers/application_controller.rb
      create  app/helpers/application_helper.rb
      create  app/views/layouts/application.html.erb
      create  app/models
      create  config
      create  config/routes.rb
      create  config/application.rb
      create  config/environment.rb
      create  config/environments
      create  config/environments/development.rb
      create  config/environments/production.rb
      create  config/environments/test.rb
      create  config/initializers
      create  config/initializers/backtrace_silencers.rb
      create  config/initializers/inflections.rb
      create  config/initializers/mime_types.rb
      create  config/initializers/secret_token.rb
      create  config/initializers/session_store.rb
      create  config/locales
      create  config/locales/en.yml
      create  config/boot.rb
      create  config/database.yml
      create  db
      create  db/seeds.rb
      create  doc
      create  doc/README_FOR_APP
      create  lib
/Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
railties-3.0.0.beta4/lib/rails/generators/rails/app/app_generator.rb:
22:in `empty_directory_with_gitkeep'': protected method
`empty_directory_with_gitkeep'' called for
#<Rails::Generators::AppGenerator:0x4f3c4c> (NoMethodError)
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
railties-3.0.0.beta4/lib/rails/generators/rails/app/app_generator.rb:
87:in `lib''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
railties-3.0.0.beta4/lib/rails/generators/rails/app/app_generator.rb:
335:in `build''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
railties-3.0.0.beta4/lib/rails/generators/rails/app/app_generator.rb:
255:in `create_lib_files''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
thor-0.13.6/lib/thor/task.rb:33:in `run''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
thor-0.13.6/lib/thor/invocation.rb:109:in `block in invoke''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
thor-0.13.6/lib/thor/invocation.rb:118:in `each''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
thor-0.13.6/lib/thor/invocation.rb:118:in `map''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
thor-0.13.6/lib/thor/invocation.rb:118:in `invoke''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
thor-0.13.6/lib/thor/group.rb:36:in `block in start''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
thor-0.13.6/lib/thor/base.rb:378:in `start''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
thor-0.13.6/lib/thor/group.rb:29:in `start''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
railties-3.0.0.beta4/lib/rails/commands/application.rb:18:in `<top
(required)>''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
railties-3.0.0.beta4/lib/rails/cli.rb:30:in `require''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
railties-3.0.0.beta4/lib/rails/cli.rb:30:in `<top (required)>''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
rails-3.0.0.beta4/bin/rails:2:in `require''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/gems/
rails-3.0.0.beta4/bin/rails:2:in `<top (required)>''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/bin/rails:
19:in `load''
	from /Users/stewartmatheson/.rvm/gems/ruby-1.9.2-preview1/bin/rails:
19:in ` ''


I guessed that there was a problem with git so thats why I used skip
git. It did not work though. Any suggestions on what I am doing wrong?