SlideShare uma empresa Scribd logo
1 de 15
Páginas dinâmicas de erro em Rails com Goalie Helder Ribeiro
 
 
 
 
public/400.html public/500.html public/400.pt-BR.html public/500.pt-BR.html
Conteúdo dinâmico?
 
$ gem install goalie # config/application.rb require 'goalie/rails' Seus problemas se acabaram!
# goalie/rails module Goalie class Engine < Rails::Engine initializer &quot;goalie.add_middleware&quot; do |app| app.middleware.delete 'ShowExceptions' app.middleware.use Goalie::CustomErrorPages end end end
app/views/public_errors/forbidden.html .erb app/views/public_errors/not_found.html .erb … app/views/local_errors/
class PublicErrorsController  < ApplicationController end
class PublicErrorsController < ApplicationController # 404 def not_found @posts = Post.find_latest end end
 
github.com/obvio171/goalie (MIT license) @obvio171 [email_address]

Mais conteúdo relacionado

Mais procurados

Meetup 2014-12-11
Meetup 2014-12-11Meetup 2014-12-11
Meetup 2014-12-11
Peter Major
 

Mais procurados (20)

How angularjs saves rails
How angularjs saves railsHow angularjs saves rails
How angularjs saves rails
 
Catalog display
Catalog displayCatalog display
Catalog display
 
AngularJS meets Rails
AngularJS meets RailsAngularJS meets Rails
AngularJS meets Rails
 
jQuery Intro
jQuery IntrojQuery Intro
jQuery Intro
 
Namespace less engine
Namespace less engineNamespace less engine
Namespace less engine
 
Simple and Effective Development Process For Software v1
Simple and Effective Development Process For Software v1Simple and Effective Development Process For Software v1
Simple and Effective Development Process For Software v1
 
elaraby developer
elaraby developerelaraby developer
elaraby developer
 
Building Mobile Friendly APIs in Rails
Building Mobile Friendly APIs in RailsBuilding Mobile Friendly APIs in Rails
Building Mobile Friendly APIs in Rails
 
What's new in Rails 5 - API Mode & Action Cable overview
What's new in Rails 5 - API Mode & Action Cable overviewWhat's new in Rails 5 - API Mode & Action Cable overview
What's new in Rails 5 - API Mode & Action Cable overview
 
Present and future of mobile development with Xamarin
Present and future of mobile development with XamarinPresent and future of mobile development with Xamarin
Present and future of mobile development with Xamarin
 
Making the Most of Modern PHP in Drupal 7
Making the Most of Modern PHP in Drupal 7Making the Most of Modern PHP in Drupal 7
Making the Most of Modern PHP in Drupal 7
 
Ember CLI & Ember Tooling
Ember CLI & Ember ToolingEmber CLI & Ember Tooling
Ember CLI & Ember Tooling
 
Introduccion app engine con python
Introduccion app engine con pythonIntroduccion app engine con python
Introduccion app engine con python
 
V Legakis Presentation
V Legakis PresentationV Legakis Presentation
V Legakis Presentation
 
Services
ServicesServices
Services
 
Building Dynamic Navigation in your Rails 4 Layout
Building Dynamic Navigation in your Rails 4 LayoutBuilding Dynamic Navigation in your Rails 4 Layout
Building Dynamic Navigation in your Rails 4 Layout
 
Xamarin Forms
Xamarin FormsXamarin Forms
Xamarin Forms
 
Meetup 2014-12-11
Meetup 2014-12-11Meetup 2014-12-11
Meetup 2014-12-11
 
Visual Automation Framework via Screenshot Comparison
Visual Automation Framework via Screenshot ComparisonVisual Automation Framework via Screenshot Comparison
Visual Automation Framework via Screenshot Comparison
 
MAKE YOUR THEMES AND PLUGINS READY FOR TRANSLATION
MAKE YOUR THEMES AND PLUGINS READY FOR TRANSLATIONMAKE YOUR THEMES AND PLUGINS READY FOR TRANSLATION
MAKE YOUR THEMES AND PLUGINS READY FOR TRANSLATION
 

Destaque

2. Luat thue TNDN.12.10 CCT
2. Luat thue TNDN.12.10 CCT2. Luat thue TNDN.12.10 CCT
2. Luat thue TNDN.12.10 CCT
Pham Ngoc Quang
 
Poleznie iskopaemie Khabarovskogo kraya
Poleznie iskopaemie Khabarovskogo krayaPoleznie iskopaemie Khabarovskogo kraya
Poleznie iskopaemie Khabarovskogo kraya
viktoriya71
 
5. Quan ly nha nuoc 12.10 CCT
5. Quan ly nha nuoc 12.10 CCT5. Quan ly nha nuoc 12.10 CCT
5. Quan ly nha nuoc 12.10 CCT
Pham Ngoc Quang
 
CAA Portfolio
CAA PortfolioCAA Portfolio
CAA Portfolio
beast
 
Õpiobjektid, metaandmed, repositooriumid
Õpiobjektid, metaandmed, repositooriumidÕpiobjektid, metaandmed, repositooriumid
Õpiobjektid, metaandmed, repositooriumid
terje1
 
GEOMETRY_ARHIMED
GEOMETRY_ARHIMEDGEOMETRY_ARHIMED
GEOMETRY_ARHIMED
viktoriya71
 
台北捷運中和線東門段貫通說明 by but.bbs@ptt.cc
台北捷運中和線東門段貫通說明 by but.bbs@ptt.cc台北捷運中和線東門段貫通說明 by but.bbs@ptt.cc
台北捷運中和線東門段貫通說明 by but.bbs@ptt.cc
Yi-Chi Tang
 

Destaque (20)

2. Luat thue TNDN.12.10 CCT
2. Luat thue TNDN.12.10 CCT2. Luat thue TNDN.12.10 CCT
2. Luat thue TNDN.12.10 CCT
 
Some requirements for badge systems
Some requirements for badge systemsSome requirements for badge systems
Some requirements for badge systems
 
Cảm nhận đọc Osho
Cảm nhận đọc OshoCảm nhận đọc Osho
Cảm nhận đọc Osho
 
Searching CPAN Offline
Searching CPAN OfflineSearching CPAN Offline
Searching CPAN Offline
 
Phương pháp luận AG
Phương pháp luận AGPhương pháp luận AG
Phương pháp luận AG
 
Dijkdoorbraak
DijkdoorbraakDijkdoorbraak
Dijkdoorbraak
 
Poleznie iskopaemie Khabarovskogo kraya
Poleznie iskopaemie Khabarovskogo krayaPoleznie iskopaemie Khabarovskogo kraya
Poleznie iskopaemie Khabarovskogo kraya
 
A/B Testing 101
A/B Testing 101A/B Testing 101
A/B Testing 101
 
5. Quan ly nha nuoc 12.10 CCT
5. Quan ly nha nuoc 12.10 CCT5. Quan ly nha nuoc 12.10 CCT
5. Quan ly nha nuoc 12.10 CCT
 
The Sunset
The SunsetThe Sunset
The Sunset
 
CAA Portfolio
CAA PortfolioCAA Portfolio
CAA Portfolio
 
Õpiobjektid, metaandmed, repositooriumid
Õpiobjektid, metaandmed, repositooriumidÕpiobjektid, metaandmed, repositooriumid
Õpiobjektid, metaandmed, repositooriumid
 
GEOMETRY_ARHIMED
GEOMETRY_ARHIMEDGEOMETRY_ARHIMED
GEOMETRY_ARHIMED
 
Tanet - Thue GTGT
Tanet - Thue GTGTTanet - Thue GTGT
Tanet - Thue GTGT
 
台北捷運中和線東門段貫通說明 by but.bbs@ptt.cc
台北捷運中和線東門段貫通說明 by but.bbs@ptt.cc台北捷運中和線東門段貫通說明 by but.bbs@ptt.cc
台北捷運中和線東門段貫通說明 by but.bbs@ptt.cc
 
Tren de Sóller
Tren de SóllerTren de Sóller
Tren de Sóller
 
Platfrom for community-based solutions
Platfrom for community-based solutionsPlatfrom for community-based solutions
Platfrom for community-based solutions
 
Palacio Nacional de Sintra (Lisboa)
Palacio Nacional de Sintra (Lisboa)Palacio Nacional de Sintra (Lisboa)
Palacio Nacional de Sintra (Lisboa)
 
TaNet - Những điều Lưu ý Quyết toán Thuế 2009
TaNet - Những điều Lưu ý Quyết toán Thuế 2009TaNet - Những điều Lưu ý Quyết toán Thuế 2009
TaNet - Những điều Lưu ý Quyết toán Thuế 2009
 
Ed generic 2014
Ed generic 2014Ed generic 2014
Ed generic 2014
 

Semelhante a Páginas Dinâmicas de Erro em Rails com Goalie

Zend - Installation And Sample Project Creation
Zend - Installation And Sample Project Creation Zend - Installation And Sample Project Creation
Zend - Installation And Sample Project Creation
Compare Infobase Limited
 
OSDC 2009 Rails Turtorial
OSDC 2009 Rails TurtorialOSDC 2009 Rails Turtorial
OSDC 2009 Rails Turtorial
Yi-Ting Cheng
 
5 Reasons To Love CodeIgniter
5 Reasons To Love CodeIgniter5 Reasons To Love CodeIgniter
5 Reasons To Love CodeIgniter
nicdev
 

Semelhante a Páginas Dinâmicas de Erro em Rails com Goalie (20)

Rails 3
Rails 3Rails 3
Rails 3
 
Fisl 11 - Dicas de Desenvolvimento Web com Ruby
Fisl 11 - Dicas de Desenvolvimento Web com RubyFisl 11 - Dicas de Desenvolvimento Web com Ruby
Fisl 11 - Dicas de Desenvolvimento Web com Ruby
 
Using Geeklog as a Web Application Framework
Using Geeklog as a Web Application FrameworkUsing Geeklog as a Web Application Framework
Using Geeklog as a Web Application Framework
 
Building Single Page Application (SPA) with Symfony2 and AngularJS
Building Single Page Application (SPA) with Symfony2 and AngularJSBuilding Single Page Application (SPA) with Symfony2 and AngularJS
Building Single Page Application (SPA) with Symfony2 and AngularJS
 
Consegi 2010 - Dicas de Desenvolvimento Web com Ruby
Consegi 2010 - Dicas de Desenvolvimento Web com RubyConsegi 2010 - Dicas de Desenvolvimento Web com Ruby
Consegi 2010 - Dicas de Desenvolvimento Web com Ruby
 
IPhone Web Development With Grails from CodeMash 2009
IPhone Web Development With Grails from CodeMash 2009IPhone Web Development With Grails from CodeMash 2009
IPhone Web Development With Grails from CodeMash 2009
 
RoR 101: Session 2
RoR 101: Session 2RoR 101: Session 2
RoR 101: Session 2
 
Zend - Installation And Sample Project Creation
Zend - Installation And Sample Project Creation Zend - Installation And Sample Project Creation
Zend - Installation And Sample Project Creation
 
Curso Symfony - Clase 4
Curso Symfony - Clase 4Curso Symfony - Clase 4
Curso Symfony - Clase 4
 
EPiServer Web Parts
EPiServer Web PartsEPiServer Web Parts
EPiServer Web Parts
 
GermaniumWeb training for CXA2010
GermaniumWeb training for CXA2010GermaniumWeb training for CXA2010
GermaniumWeb training for CXA2010
 
Writing resources_controller: Discovering REST Patterns in Rails
Writing resources_controller: Discovering REST Patterns in RailsWriting resources_controller: Discovering REST Patterns in Rails
Writing resources_controller: Discovering REST Patterns in Rails
 
You Know WebOS
You Know WebOSYou Know WebOS
You Know WebOS
 
Rails-3-app-auto-generator-20100817
Rails-3-app-auto-generator-20100817Rails-3-app-auto-generator-20100817
Rails-3-app-auto-generator-20100817
 
Rails engines
Rails enginesRails engines
Rails engines
 
Agile Development With Hobo
Agile Development With HoboAgile Development With Hobo
Agile Development With Hobo
 
OSDC 2009 Rails Turtorial
OSDC 2009 Rails TurtorialOSDC 2009 Rails Turtorial
OSDC 2009 Rails Turtorial
 
5 Reasons To Love CodeIgniter
5 Reasons To Love CodeIgniter5 Reasons To Love CodeIgniter
5 Reasons To Love CodeIgniter
 
Even Faster Web Sites at jQuery Conference '09
Even Faster Web Sites at jQuery Conference '09Even Faster Web Sites at jQuery Conference '09
Even Faster Web Sites at jQuery Conference '09
 
Front End Development for Back End Java Developers - Jfokus 2020
Front End Development for Back End Java Developers - Jfokus 2020Front End Development for Back End Java Developers - Jfokus 2020
Front End Development for Back End Java Developers - Jfokus 2020
 

Último

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 

Páginas Dinâmicas de Erro em Rails com Goalie