Closed conradwt closed 12 years ago
I don't believe there is an easy way to do this without forking it yourself, but you can override which views are rendered entirely by defining render_404_error
and render_error
in your controller. For example:
def render_404_error(exception = nil)
if request.format.nil? or !request.format.html? # Gracefully handles poorly-written bots and mobile clients
head 404
else
render 'errors/404'
end
end
EDIT: Woops, sorry guys. Hit Comment and Close instead of Comment.
1 month inactive, considering this issue closed with @bfrydl's solution.
Is there an easy way to add additional content to the view template? I need to add a content_for to add content to another location with the DOM.