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
<anthonyfoste...@gmail.com>wrote:

> 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!

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to