railsbp/rails_best_practices — Issue #103: can't convert RailsBestPractices::Core::Nil to Array (RailsBestPractices::Core::Nil#to_ary gives RailsBestPractices::Core::Nil) (TypeError)
Author: pboling
Created: 2012-02-24 19:45:08+00:00
State: open

My environment:

```
∴ rails -v
Rails 3.0.11
∴ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.10
- RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-darwin11.2.0]
- INSTALLATION DIRECTORY: /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup
- RUBY EXECUTABLE: /Users/pboling/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
- EXECUTABLE DIRECTORY: /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-11
- GEM PATHS:
- /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup
- /Users/pboling/.rvm/gems/ruby-1.9.2-p290@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://gems.rubyforge.org/"]
- REMOTE SOURCES:
- http://gems.rubyforge.org/
```

```/Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/prepares/route_prepare.rb:40:in `start_command': can't convert RailsBestPractices::Core::Nil to Array (RailsBestPractices::Core::Nil#to_ary gives RailsBestPractices::Core::Nil) (TypeError)
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core/check.rb:53:in `node_start'
from (eval):6:in `block in prepare'
from (eval):4:in `each'
from (eval):4:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from (eval):12:in `block in prepare'
from (eval):10:in `each'
from (eval):10:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core_ext/sexp.rb:9:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core/runner.rb:80:in `prepare'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/core/runner.rb:88:in `prepare_file'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/analyzer.rb:88:in `block in process'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/analyzer.rb:87:in `each'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/analyzer.rb:87:in `process'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/analyzer.rb:58:in `block in analyze'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/analyzer.rb:58:in `each'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/analyzer.rb:58:in `analyze'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/lib/rails_best_practices/command.rb:124:in `'
from /Users/pboling/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/pboling/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/gems/rails_best_practices-1.8.0/bin/rails_best_practices:6:in `'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/bin/rails_best_practices:19:in `load'
from /Users/pboling/.rvm/gems/ruby-1.9.2-p290@rup/bin/rails_best_practices:19:in `

'
```