rubinius/rubinius — Issue #1374: Rubinius Trunk Rails 3.1.1 `rails new` command failure
Author: cwgem
Created: 2011-10-26 23:27:39+00:00
State: open

When attempting to follow along the rails getting started guide for testing purposes on Rubinius trunk, the `rails new blog` command fails. Below is the relevant information on the error. Let me know if you require anything more detailed.

## Build Procedure on clean git clone of repo
```
./configure --prefix=/Users/chriswhite/Ruby/rubinius --default-version=1.9
rake clean
rake build
rake install
```

## Ruby Version
```
$ ruby -v
rubinius 2.0.0dev (1.9.2 49650f30 yyyy-mm-dd JI) [x86_64-apple-darwin10.8.0]
```

## Rails Initialization
```
$ rails new blog
create
create README
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/mailers
create app/models
create app/views/layouts/application.html.erb
create app/mailers/.gitkeep
create app/models/.gitkeep
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/initializers/wrap_parameters.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
create lib/tasks
create lib/tasks/.gitkeep
create lib/assets
create lib/assets/.gitkeep
create log
create log/.gitkeep
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/index.html
create public/robots.txt
create script
create script/rails
An exception occurred running /Users/chriswhite/Ruby/rubinius/gems/bin/rails
method 'entries': given 2, expected 1 (ArgumentError)

Backtrace:
FileUtils::Entry_#entries at /Users/chriswhite/Ruby/rubinius/lib/19
/fileutils.rb:1186
FileUtils::Entry_#traverse (preorder_traverse) at /Users/chriswhite/Ruby
/rubinius/lib/19
/fileutils.rb:1342
{ } in FileUtils.chmod_R at /Users/chriswhite/Ruby/rubinius/lib/19
/fileutils.rb:902
Array#each at kernel/bootstrap/array.rb:66
FileUtils.chmod_R at /Users/chriswhite/Ruby/rubinius/lib/19
/fileutils.rb:901
Thor::Actions(Rails::Generators::AppGenerator)#chmod at /Users/chriswhite/Ruby
/rubinius/gems/1.9/gems
/thor-0.14.6/lib/thor
/actions
/file_manipulation.rb:132
Rails::ActionMethods(Rails::AppBuilder)#chmod at /Users/chriswhite/Ruby
/rubinius/gems/1.9/gems
/railties-3.1.1/lib/rails
/generators/rails/app
/app_generator.rb:17
Rails::AppBuilder#script at /Users/chriswhite/Ruby/rubinius/gems
/1.9/gems/railties-3.1.1/lib/rails
/generators/rails/app
/app_generator.rb:106
Rails::Generators::AppBase(Rails::Generators::AppGenerator)#build at \
/Users/chriswhite/Ruby/rubinius/gems/1.9/gems/railties-3.1.1/lib/rails/generators/app_base.rb:96
Rails::Generators::AppGenerator#create_script_files at /Users/chriswhite/Ruby
/rubinius/gems/1.9/gems
/railties-3.1.1/lib
/rails/generators/rails
/app
/app_generator.rb:210
Thor::Task#run at /Users/chriswhite/Ruby/rubinius/gems
/1.9/gems/thor-0.14.6/lib/thor
/task.rb:22
Thor::Invocation(Rails::Generators::AppGenerator)#invoke_task at \
/Users/chriswhite/Ruby/rubinius/gems/1.9/gems/thor-0.14.6/lib/thor/invocation.rb:118
{ } in Thor::Invocation(Rails::Generators::AppGenerator)#invoke_all at \
/Users/chriswhite/Ruby/rubinius/gems/1.9/gems/thor-0.14.6/lib/thor/invocation.rb:124
{ } in Enumerable(Thor::CoreExt::OrderedHash)#collect at kernel/common
/enumerable19.rb:146
Hash(Thor::CoreExt::OrderedHash)#each at kernel/common/hash19.rb:403
Enumerable(Thor::CoreExt::OrderedHash)#map (collect) at kernel/common
/enumerable19.rb:145
Thor::Invocation(Rails::Generators::AppGenerator)#invoke_all at \
/Users/chriswhite/Ruby/rubinius/gems/1.9/gems/thor-0.14.6/lib/thor/invocation.rb:124
Thor::Group.dispatch at /Users/chriswhite/Ruby/rubinius/gems
/1.9/gems/thor-0.14.6/lib/thor
/group.rb:226
Thor::Base::ClassMethods(Class)#start at /Users/chriswhite/Ruby/rubinius/gems
/1.9/gems/thor-0.14.6/lib/thor
/base.rb:389
Object#__script__ at /Users/chriswhite/Ruby/rubinius/gems
/1.9/gems/railties-3.1.1/lib/rails
/commands/application.rb:31
Rubinius::CodeLoader.require at kernel/common/codeloader.rb:152
Kernel(Object)#gem_original_require (require) at kernel/common/kernel.rb:672
Kernel(Object)#require at /Users/chriswhite/Ruby/rubinius/lib
/rubygems/custom_require.rb:29
Object#__script__ at /Users/chriswhite/Ruby/rubinius/gems
/1.9/gems/railties-3.1.1/lib/rails
/cli.rb:15
Rubinius::CodeLoader.require at kernel/common/codeloader.rb:152
Kernel(Object)#gem_original_require (require) at kernel/common/kernel.rb:672
Kernel(Object)#require at /Users/chriswhite/Ruby/rubinius/lib
/rubygems/custom_require.rb:29
Object#__script__ at /Users/chriswhite/Ruby/rubinius/gems
/1.9/gems/rails-3.1.1/bin/rails:7
Kernel(Object)#load at kernel/common/kernel.rb:621
Object#__script__ at /Users/chriswhite/Ruby/rubinius/gems
/bin/rails:19
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:65
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:107
Rubinius::Loader#script at kernel/loader.rb:626
Rubinius::Loader#main at kernel/loader.rb:780
```