How can I check error pages in rails development environment?

I want to create my 404 page in my Rails 3.0.7 application. If I request a non-existing page, I get development output

    Routing Error

    No route matches "/foo"

I tried the following answers in:

How to test 500.html in rails development env?

application_controller:

def local_request?
  false
end

development.rb:

config.consider_all_requests_local = false

development.rb:

config.action_view.debug_rjs = false

and I also started my application with: RAILS_ENV = production rails s RAILS_ENV = launch passenger production

None of this worked out. I like the way rails make difficult tasks very simple. But it really upsets how really simple things turn out to be extremely complex, impossible to debug, and you end up hacking remote servers to get around this.

Has anyone had this problem before?

+5
2

, , .

s -e

.

+1

All Articles