This is a follow-up to attempting to remove the stack trace for errors outside my logs, and handle bad routes. A little better to do Here are my relevant routes. RB entry and controller
map.default '*',: controller = & gt; 'Error',: Action => 'Route_not_found' class errors controller & lt; ApplicationController def path_ not_found logger.error ("+ routing error for request.url) end and I also tried to map.connect, as recommended in one, but he There is a special meaning of the named route 'map.default'?
Map.connect 'path',: controller = & gt; 'error',: Action => very last path as root_note_found should work as expected ('root' See globbying '). If you Running on the path that is happening? Besides, have you resumed your server while changing the route?
Comments
Post a Comment