ruby - In Rails, what causes the 'not_found.html' view from app/views/application/ to be displayed? -
ruby - In Rails, what causes the 'not_found.html' view from app/views/application/ to be displayed? -
in app there form has been causing users receive "we can't find you're looking for" error page found in app/views/application.
the problem , other people on our team have been unable reproduce error ourselves going through form ourselves in pre-production environment same codebase , filling out/submitting various options configured.
rails has views 500, 404, , 422 errors in app/public , think understand causes (500 code issues syntax errors , 404 missing views). don't understand not_found view in public or causes shown user.
rails returns 404 (not found) in prodution in cases when experience activerecord::recordnotfoundor actioncontroller::routingerror exception in development mode.
if want have same behaviour in development, alter next line in environment config false:
# in config/environments/development.rb config.consider_all_requests_local = false ruby-on-rails ruby view error-handling
Comments
Post a Comment