flyerhzm/rails_best_practices — Issue #68: restrict_auto_generated_routes_review.rb:91:in `controller_name': undefined method `include?' for nil:NilClass (NoMethodError)
Author: Bregor
Created: 2011-10-21 08:23:05+00:00
State: open

* rails_best_practices: 1.2.0
* rails: 3.1.0

$ bundle exec rails_best_practices -d .

...
./config/routes.rb
/Users/bregor/Developer/.rvm/gems/ruby-1.9.2-p290-patched@asterisker-rails-3.1/bundler/gems/rails_best_practices-1e6b083e438c/lib/rails_best_practices/reviews/restrict_auto_generated_routes_review.rb:91:in `controller_name': undefined method `include?' for nil:NilClass (NoMethodError)
from /Users/bregor/Developer/.rvm/gems/ruby-1.9.2-p290-patched@asterisker-rails-3.1/bundler/gems/rails_best_practices-1e6b083e438c/lib/rails_best_practices/reviews/restrict_auto_generated_routes_review.rb:67:in `check_resources'
from /Users/bregor/Developer/.rvm/gems/ruby-1.9.2-p290-patched@asterisker-rails-3.1/bundler/gems/rails_best_practices-1e6b083e438c/lib/rails_best_practices/reviews/restrict_auto_generated_routes_review.rb:41:in `start_command'

You can see my routes.rb here: https://gist.github.com/96b44697288e4fe191d7