ubermajestix/grep_routes — Issue #1: Rails 3.1.3 - "wrong constant name Server.new (NameError)"
Author: kfitzpatrick
Created: 2012-02-24 18:31:39+00:00
State: open

I don't have time to look into it just right now, but in a Rails 3.1.3 project I got this message when running `grep_routes admin`

/Users/pivotal/.rvm/gems/ruby-1.9.2-p290@foody-direct/gems/grep_routes-0.0.5/lib/grep_routes.rb:84:in `const_defined?': wrong constant name Server.new, (NameError)
from /Users/pivotal/.rvm/gems/ruby-1.9.2-p290@foody-direct/gems/grep_routes-0.0.5/lib/grep_routes.rb:84:in `make_rackapp'
from /Users/pivotal/.rvm/gems/ruby-1.9.2-p290@foody-direct/gems/grep_routes-0.0.5/lib/grep_routes.rb:79:in `block in init_rack_apps'
from /Users/pivotal/.rvm/gems/ruby-1.9.2-p290@foody-direct/gems/grep_routes-0.0.5/lib/grep_routes.rb:71:in `each'
from /Users/pivotal/.rvm/gems/ruby-1.9.2-p290@foody-direct/gems/grep_routes-0.0.5/lib/grep_routes.rb:71:in `init_rack_apps'
from /Users/pivotal/.rvm/gems/ruby-1.9.2-p290@foody-direct/gems/grep_routes-0.0.5/lib/grep_routes.rb:40:in `initialize'
from /Users/pivotal/.rvm/gems/ruby-1.9.2-p290@foody-direct/gems/grep_routes-0.0.5/bin/grep_routes:8:in `new'
from /Users/pivotal/.rvm/gems/ruby-1.9.2-p290@foody-direct/gems/grep_routes-0.0.5/bin/grep_routes:8:in `'
from /Users/pivotal/.rvm/gems/ruby-1.9.2-p290@foody-direct/bin/grep_routes:19:in `load'
from /Users/pivotal/.rvm/gems/ruby-1.9.2-p290@foody-direct/bin/grep_routes:19:in `

'