Software Público Brasileiro
Portal do

Software Público Brasileiro

  • Cadastre-se
  • Entrar
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • noosfero
  • app
  • controllers
  • public
  • not_found_controller.rb
  • f9296a1f   [performance] Rendering nothing on some not_founds ... Browse Code »
    Some requests aren't made directly by the user, like the request to get
    the favicon, and these guys are not displayed to the user. Therefore
    it's not necessary to render the full layout not_found, just sent the
    status of not_found
    Rodrigo Souto
    2012-09-13 17:24:10 +0000  
not_found_controller.rb 157 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9
class NotFoundController < ApplicationController
  def index
    render_not_found
  end

  def nothing
    render :nothing => true, :status => 404
  end
end
Voltar para o topo
Assuntos
Publique seu software
Prestadores de serviço
Espaços dos municípios
Software Público
Entenda o que é
Eventos
Prêmios
Publicações
Serviços
FAQ
Contato
Relatar erros
RSS
O que é?
Assine
Navegação
Acessibilidade
Mapa do site

Desenvolvido com os projetos de software livre Colab, Gitlab, Mailman e Noosfero