結局、URLのコントローラー部が間違ってたとき

500エラーが出るようにフレームワークでなってしまってるから、404を出したいなら
dispatcher.rbのfailsafe_responseを書き換えてしまうのはアリなのかナシなのか。

      # If the block raises, send status code as a last-ditch response.
      def failsafe_response(output, status, exception = nil)
        yield
      rescue Object
        begin
          #bird changed
          #output.write "Status: #{status}\r\n"

          if exception
            message    = exception.to_s + "\r\n" + exception.backtrace.join("\r\n")
            #error_path = File.join(RAILS_ROOT, 'public', '500.html')
            #bird changed
            error_path = File.join(RAILS_ROOT, 'public', '404.html')

            if defined?(RAILS_DEFAULT_LOGGER) && !RAILS_DEFAULT_LOGGER.nil?
              RAILS_DEFAULT_LOGGER.fatal(message)

              #bird changed
              #output.write "Content-Type: text/html\r\n\r\n"

              if File.exists?(error_path)
                output.write(IO.read(error_path))
              else
                output.write("<html><body><h1>Application error (Rails)</h1></body></html>")
              end
            else
              output.write "Content-Type: text/plain&#92;r&#92;n&#92;r&#92;n"
              output.write(message)
            end
          end
        rescue Object
        end
      end