Skip to content

Instantly share code, notes, and snippets.

@deeeki
Created December 14, 2011 07:04
Show Gist options
  • Save deeeki/1475571 to your computer and use it in GitHub Desktop.
Save deeeki/1475571 to your computer and use it in GitHub Desktop.
rails_best_practices (1.6.0) error
/Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/core/routes.rb:27:in `controller_name_with_namespaces': undefined method `camelize' for nil:NilClass (NoMethodError)
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/reviews/remove_unused_methods_in_controllers_review.rb:82:in `block in after_review'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/reviews/remove_unused_methods_in_controllers_review.rb:80:in `each'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/reviews/remove_unused_methods_in_controllers_review.rb:80:in `after_review'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/core/check.rb:224:in `block (2 levels) in included'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/core/check.rb:66:in `instance_exec'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/core/check.rb:66:in `block in node_end'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/core/check.rb:65:in `each'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/core/check.rb:65:in `node_end'
from (eval):17:in `block in review'
from (eval):15:in `each'
from (eval):15:in `review'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/core_ext/sexp.rb:16:in `review'
from (eval):12:in `block in review'
from (eval):10:in `each'
from (eval):10:in `review'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/core_ext/sexp.rb:16:in `review'
from (eval):12:in `block in review'
from (eval):10:in `each'
from (eval):10:in `review'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/core_ext/sexp.rb:16:in `review'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/core/runner.rb:135:in `after_review'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/analyzer.rb:90:in `process'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/analyzer.rb:57:in `block in analyze'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/analyzer.rb:57:in `each'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/analyzer.rb:57:in `analyze'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/lib/rails_best_practices/command.rb:114:in `<top (required)>'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/bin/rails_best_practices:6:in `require'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/gems/rails_best_practices-1.6.0/bin/rails_best_practices:6:in `<top (required)>'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/bin/rails_best_practices:19:in `load'
from /Users/deeeki/dev/src/myapp/vendor/bundle/ruby/1.9.1/bin/rails_best_practices:19:in `<main>'
Myapp::Application.routes.draw do
match ':controller(/:action(/:id))', :controller => /subdir\/[^\/]+/ #doesn't work.
match ':controller(/:action(/:id(.:format)))'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment