flyerhzm/rails_best_practices — Issue #73: routes crashing RBP
Author: kayluhb
Created: 2011-11-07 22:38:11+00:00
State: open

When I add this route, I cannot run `rails_best_practices -f html`

`resources :accounts, :settings, :only => [:index]`

Unless I'm mistaken, that's a valid route.

The error it throws is

rails_best_practices-1.2.0/lib/rails_best_practices/reviews/restrict_auto_generated_routes_review.rb:91:in \`controller_name': undefined method \`include?' for nil:NilClass (NoMethodError)

If I make it two lines, it's no problem.

Feel free to close this if it's not really an issue. I haven't had a chance to dive into the code.

thanks