# Is there a problem with map.root

**URL:** <https://www.ruby-forum.com/t/is-there-a-problem-with-map-root/89154>\
**Category:** Rails\
**Created:** [March 17, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/is-there-a-problem-with-map-root/89154 "2007-03-17T21:15:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gberz3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f9ae1b/32.png) [@gberz3](https://www.ruby-forum.com/u/gberz3)\
**Post date:** [March 17, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/is-there-a-problem-with-map-root/89154/1 "2007-03-17T21:15:56Z")

</div>

Hi All,

I’ve taken a look at the rails API, and per it, I should be able to  
say:

map.root :controller =\> ‘controller\_name’

. . .however, ‘mongrel\_rails start’ seems to fail giving me an error:

\*\* Starting Mongrel listening at 0.0.0.0:3000  
\*\* Starting Rails with development environment…  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/  
action\_controller/routing.rb:965:in `build': Illegal route: the :controller must be specified! (ArgumentError) from /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ action_controller/routing.rb:1172:in`add\_route’  
from /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/  
action\_controller/routing.rb:1178:in `add_named_route' from /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ action_controller/routing.rb:997:in`root\_without\_deprecation’  
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/  
active\_support/deprecation.rb:94:in `root' from /Users/michwill/RUBY_PROJECTS/michael/config/../config/ routes.rb:2 from /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ action_controller/routing.rb:1139:in`draw’  
from /Users/michwill/RUBY\_PROJECTS/michael/config/…/config/  
routes.rb:1  
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/  
active\_support/dependencies.rb:488:in `load' ... 21 levels... from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/ mongrel/command.rb:211:in`run’  
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/  
mongrel\_rails:243  
from /usr/local/bin/mongrel\_rails:16:in `load’  
from /usr/local/bin/mongrel\_rails:16

Any ideas?

Thanks,  
Michael
