sferik/rails_admin — Issue #967: Routing incompatible with rails 3.1.3
Author: rajuru
Created: 2012-02-07 06:41:37+00:00
State: open

hi,
i'm stuck with this error message, probably compatibility issue with rails 3.1.3

```
undefined method `add' for class `ActionDispatch::Routing::RouteSet::NamedRouteCollection'
```

### From Gemfile -

```
gem 'rails', '3.1.3'
gem 'rails_admin', :git => 'git://github.com/sferik/rails_admin.git'
```

### Details stack trace -

```
undefined method `add' for class `ActionDispatch::Routing::RouteSet::NamedRouteCollection'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:110:in `'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:80:in `'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:10:in `'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:9:in `'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:8:in `'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/railties-3.1.3/lib/rails/engine.rb:466:in `routes'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/railties-3.1.3/lib/rails/engine.rb:363:in `isolate_namespace'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/bundler/gems/rails_admin-8048e7d844c2/lib/rails_admin/engine.rb:12:in `'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/bundler/gems/rails_admin-8048e7d844c2/lib/rails_admin/engine.rb:11:in `'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/bundler/gems/rails_admin-8048e7d844c2/lib/rails_admin/engine.rb:10:in `'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/bundler/gems/rails_admin-8048e7d844c2/lib/rails_admin.rb:1:in `require'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/bundler/gems/rails_admin-8048e7d844c2/lib/rails_admin.rb:1:in `'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `block in require'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.0.21/lib/bundler.rb:122:in `require'
/media/Docs/htdocs/ruby/comparetablets/config/application.rb:7:in `'
/Users/coder/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/coder/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/media/Docs/htdocs/ruby/comparetablets/Rakefile:5:in `'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/gems/rake-0.9.2.2/bin/rake:33:in `'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/bin/rake:19:in `load'
/Users/coder/.rvm/gems/ruby-1.9.3-p0@comparetablets/bin/rake:19:in `

'
```