# Why don't I get 404s?

**URL:** <https://www.ruby-forum.com/t/why-dont-i-get-404s/99136>\
**Category:** Rails\
**Created:** [July 20, 2006, 3:57pm UTC](https://www.ruby-forum.com/t/why-dont-i-get-404s/99136 "2006-07-20T15:57:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_del\_Stroth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a87d85/32.png) [@Jonathan\_del\_Stroth](https://www.ruby-forum.com/u/Jonathan_del_Stroth)\
**Post date:** [July 20, 2006, 3:57pm UTC](https://www.ruby-forum.com/t/why-dont-i-get-404s/99136/1 "2006-07-20T15:57:25Z")

</div>

When I go to a missing page in my rails app, I get the 500.html page,  
and this in my log output:

no route found to match “/asdasd” with {:method=\>:get}  
./script/…/config/…/vendor/rails/actionpack/lib/action\_controller/  
routing.rb:1057:in `recognize_path' ./script/../config/../vendor/rails/actionpack/lib/action_controller/ routing.rb:1047:in`recognize’  
./script/…/config/…/vendor/rails/railties/lib/dispatcher.rb:38:in  
`dispatch' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/lib/mongrel/rails.rb: 85:in`process’  
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/lib/mongrel.rb:  
549:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/lib/mongrel.rb: 548:in`process\_client’  
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/lib/mongrel.rb:  
617:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/lib/mongrel.rb: 616:in`run’  
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/lib/mongrel.rb:  
605:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/lib/mongrel.rb: 935:in`run’  
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/lib/mongrel.rb:  
934:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/bin/mongrel_rails: 119:in`run’  
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/lib/mongrel/  
command.rb:211:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/bin/mongrel_rails:227 ./script/../config/../vendor/rails/activesupport/lib/active_support/ dependencies.rb:140:in`load’  
./script/…/config/…/vendor/rails/railties/lib/commands/servers/  
mongrel.rb:48  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in  
`require' ./script/../config/../vendor/rails/activesupport/lib/active_support/ dependencies.rb:147:in`require’  
./script/…/config/…/vendor/rails/railties/lib/commands/server.rb:39  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in  
`require’  
script/server:3

I get the same problem running on lighty. My 404.html page exists.  
Any idea why it’s not showing up?

---

<div class="post-metadata">

**Author:** ![Jonathan\_del\_Stroth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a87d85/32.png) [@Jonathan\_del\_Stroth](https://www.ruby-forum.com/u/Jonathan_del_Stroth)\
**Post date:** [July 20, 2006, 4:27pm UTC](https://www.ruby-forum.com/t/why-dont-i-get-404s/99136/2 "2006-07-20T16:27:21Z")

</div>

On 7/20/06, Jonathan del Strother [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> When I go to a missing page in my rails app, I get the 500.html page,  
> and this in my log output:
> 
> no route found to match “/asdasd” with {:method=\>:get}  
> ./script/…/config/…/vendor/rails/actionpack/lib/action\_controller/  
> routing.rb:1057:in `recognize\_path’  
> ./script/…/config/…/vendor/rails/actionpack/lib/action\_controller/

Can you show your routes file?

---

<div class="post-metadata">

**Author:** ![Jonathan\_del\_Stroth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a87d85/32.png) [@Jonathan\_del\_Stroth](https://www.ruby-forum.com/u/Jonathan_del_Stroth)\
**Post date:** [July 20, 2006, 6:01pm UTC](https://www.ruby-forum.com/t/why-dont-i-get-404s/99136/3 "2006-07-20T18:01:40Z")

</div>

On Thursday, July 20, 2006, at 2:55 PM, Jonathan del Strother wrote:

> /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/lib/mongrel/  
> mongrel.rb:605:in `run' dependencies.rb:140:in `load’
> 
> I get the same problem running on lighty. My 404.html page exists.  
> Any idea why it’s not showing up?
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

are you in development mode or production?

\_Kevin  
[www.sciwerks.com](http://www.sciwerks.com)

---

<div class="post-metadata">

**Author:** ![Jonathan\_del\_Stroth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a87d85/32.png) [@Jonathan\_del\_Stroth](https://www.ruby-forum.com/u/Jonathan_del_Stroth)\
**Post date:** [July 20, 2006, 9:35pm UTC](https://www.ruby-forum.com/t/why-dont-i-get-404s/99136/4 "2006-07-20T21:35:39Z")

</div>

On Thursday, July 20, 2006, at 7:39 PM, Jonathan del Strother wrote:

> > > ./script/…/config/…/vendor/rails/actionpack/lib/action\_controller/  
> > > mongrel.rb:617:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/lib/mongrel/ dependencies.rb:147:in `require’  
> > > are you in development mode or production?  
> > > map.logout ‘logout’, :controller =\> “accounts”, :action =\> ‘logout’
> 
> c8zANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh  
> TlzBBrAMdtjQ524lHs3rbUTJHJjvrKhiok87kvhOf5OU9lPnj885Z1b6WnB6gfgWypECA  
> UNhcGUg  
> ZyBDQTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAxKY8VXNV+065yplaHmjAdQRwn  
> IzRUIPq  
> KoZIhvcNAQkFMQ8XDTA2MDcyMDE4MzkxNlowIwYJKoZIhvcNAQkEMRYEFMXodZfOPautr  
> zkwyJg7  
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

Try running in production mode for a minute and see if the behavior goes  
away.

\_Kevin  
[www.sciwerks.com](http://www.sciwerks.com)

---

<div class="post-metadata">

**Author:** ![Jonathan\_del\_Stroth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a87d85/32.png) [@Jonathan\_del\_Stroth](https://www.ruby-forum.com/u/Jonathan_del_Stroth)\
**Post date:** [July 20, 2006, 8:40pm UTC](https://www.ruby-forum.com/t/why-dont-i-get-404s/99136/5 "2006-07-20T20:40:00Z")

</div>

On 20 Jul 2006, at 17:01, Kevin O. wrote:

> > ./script/…/config/…/vendor/rails/railties/lib/dispatcher.rb:38:in  
> > mongrel.rb:616:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13/bin/mongrel_rails: /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in`require’  
> > script/server:3
> > 
> > I get the same problem running on lighty. My 404.html page exists.  
> > Any idea why it’s not showing up?
> 
> are you in development mode or production?

Development. Stack traces caused by other exceptions display fine.

> Can you show your routes file?

ActionController::Routing::Routes.draw do |map|  
map.resources :accounts  
map.connect ‘’, :controller =\> ‘message’  
map.login ‘login’, :controller =\> “accounts”, :action =\> ‘login’  
map.logout ‘logout’, :controller =\> “accounts”, :action =\> ‘logout’  
map.connect ‘:controller/service.wsdl’, :action =\> ‘wsdl’  
map.connect ‘:controller/:action/:id’  
end

I’m wondering if it’s due to a change in recent Edge Rails - does  
anyone on Edge get normal 404s?

---

<div class="post-metadata">

**Author:** ![Jonathan\_del\_Stroth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a87d85/32.png) [@Jonathan\_del\_Stroth](https://www.ruby-forum.com/u/Jonathan_del_Stroth)\
**Post date:** [July 21, 2006, 12:47am UTC](https://www.ruby-forum.com/t/why-dont-i-get-404s/99136/6 "2006-07-21T00:47:49Z")

</div>

On 20 Jul 2006, at 20:34, Kevin O. wrote:

> Try running in production mode for a minute and see if the behavior  
> goes  
> away.

Nope, same problem.
