# Routing Error Recognition failed for "/..."

**URL:** <https://www.ruby-forum.com/t/routing-error-recognition-failed-for/81672>\
**Category:** Rails\
**Created:** [January 11, 2007, 4:18am UTC](https://www.ruby-forum.com/t/routing-error-recognition-failed-for/81672 "2007-01-11T04:18:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brad\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b38774/32.png) [@Brad\_W](https://www.ruby-forum.com/u/Brad_W)\
**Post date:** [January 11, 2007, 4:18am UTC](https://www.ruby-forum.com/t/routing-error-recognition-failed-for/81672/1 "2007-01-11T04:18:53Z")

</div>

This isn’t a question but more of an FYI for any newbies as stupid as me  
that can’t figure out why they get a similar message like this when  
typing the application’s name into the URL thinking that it’s the same  
as the directory name.

For example, my app was called moviecritic, so I tried navigating to  
http:localhost:3000/moviecritic after booting up WeBrick, but received  
this error. Then, I tried my model name, movie, instead of moviecritic  
and it worked.

---

<div class="post-metadata">

**Author:** ![Brad\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b38774/32.png) [@Brad\_W](https://www.ruby-forum.com/u/Brad_W)\
**Post date:** [January 11, 2007, 4:21am UTC](https://www.ruby-forum.com/t/routing-error-recognition-failed-for/81672/2 "2007-01-11T04:21:55Z")

</div>

Brad W wrote:

> This isn’t a question but more of an FYI for any newbies as stupid as me  
> that can’t figure out why they get a similar message like this when  
> typing the application’s name into the URL thinking that it’s the same  
> as the directory name.
> 
> For example, my app was called moviecritic, so I tried navigating to  
> http:localhost:3000/moviecritic after booting up WeBrick, but received  
> this error. Then, I tried my model name, movie, instead of moviecritic  
> and it worked.

Oops, that’s incorrect. It wasnt the same as my model name, which was  
Movie, but the same as the table name in my DB.

---

<div class="post-metadata">

**Author:** ![Brad\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b38774/32.png) [@Brad\_W](https://www.ruby-forum.com/u/Brad_W)\
**Post date:** [January 11, 2007, 4:57am UTC](https://www.ruby-forum.com/t/routing-error-recognition-failed-for/81672/3 "2007-01-11T04:57:32Z")

</div>

Hi –

On Thu, 11 Jan 2007, Brad W wrote:

> > and it worked.
> 
> Oops, that’s incorrect. It wasnt the same as my model name, which was  
> Movie, but the same as the table name in my DB.

I’ll bet you have a controller file called movies\_controller.rb 🙂  
When you connect to the application, the routing mechanism zeros in on  
a particular controller action, based on the URL (with some  
interpretation thereof by the route recognizer). If you connect to  
/movies, then by default that will look for the “index” action in the  
“movies” controller (i.e., movies\_controller.rb).

Even if the table name is the same, it’s not involved at this stage.

David

–  
Q. What is THE Ruby book for Rails developers?  
A. RUBY FOR RAILS by David A. Black ([Ruby for Rails](http://www.manning.com/black))  
(See what readers are saying! [http://www.rubypal.com/r4rrevs.pdf](http://www.rubypal.com/r4rrevs.pdf))  
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?  
A. Ruby Power and Light, LLC ([http://www.rubypal.com](http://www.rubypal.com))
