UWE-Ruby/week-06-sinatra — Issue #2: Should you redirect on a 404?
Author: seungkoh
Created: 2011-11-12 09:10:03+00:00
State: open

This question relates to the last test in the rspec file. Is it proper to explicitly redirect to a url such as http://www.mysite.com/404.html if the page the user requested does not exist? If so, how do you coordinate this with the Sinatra not_found method? Should I stick the redirect in there? The behavior I'm seeing is that not_found will render the template with name "404," but it doesn't redirect you to a page named "404."