For a plugin I want to hack the following feature into Rails:
When a (partial) template does not exist (regardless of the format) I want to render a default template
Solution 2:
Use 'rescue_from' in ApplicationController
class ApplicationController > ActionController::Base rescue_from ActionView::MissingTemplate do |exception| # use exception.path to extract the path information # This does not work for partials end end
Drawback: does not work for partials.