# Viewing 404 in development

**URL:** <https://www.ruby-forum.com/t/viewing-404-in-development/195457>\
**Category:** Rails\
**Created:** [September 23, 2010, 2:05pm UTC](https://www.ruby-forum.com/t/viewing-404-in-development/195457 "2010-09-23T14:05:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Foster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a9adbd/32.png) [@Anthony\_Foster](https://www.ruby-forum.com/u/Anthony_Foster)\
**Post date:** [September 23, 2010, 2:05pm UTC](https://www.ruby-forum.com/t/viewing-404-in-development/195457/1 "2010-09-23T14:05:39Z")

</div>

Hey,

I’m doing a basic project in Ruby on Rails, and want to test my  
routing, and error pages. I’d like to do this in my development  
environment. I’ve gone into config/environments/development.rb and  
set:

config.action\_controller.consider\_all\_requests\_local = false

But when I go to an improper route, I don’t get public/404.html  
rendered. I continue to get the routing error page:

Routing Error

No route matches “/badroute” with {:method=\>:get}

Is there a better way to check this? I’d like to see how rails handles  
the routing errors by default, and what the 404 will cover, than maybe  
add some complex error handling after.

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![Anthony\_Foster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a9adbd/32.png) [@Anthony\_Foster](https://www.ruby-forum.com/u/Anthony_Foster)\
**Post date:** [October 6, 2010, 2:45pm UTC](https://www.ruby-forum.com/t/viewing-404-in-development/195457/2 "2010-10-06T14:45:09Z")

</div>

For what it’s worth, I have solved this issue. As opposed to localhost,  
point your browser to your machines ip address, assuming your  
development is  
local.

Otherwise you could rescue\_action\_locally to call  
rescue\_action\_in\_public.

On Wed, Sep 22, 2010 at 4:10 PM, Anthony Foster
