Monday, May 26, 2008

404




My goodness, it was sure tricky to add a 404 not found page to this one Ruby on Rails application I had. All the help pages didn't seem to work, but adding this to application.rb did:


def rescue_action_in_public(exception)
render :text => 'not found', :status => 404
end