Skip to content

Instantly share code, notes, and snippets.

@courtsimas
Created May 3, 2012 16:09
Show Gist options
  • Save courtsimas/2586844 to your computer and use it in GitHub Desktop.
Save courtsimas/2586844 to your computer and use it in GitHub Desktop.
handling a missing template due to wrong format
rescue_from ActionView::MissingTemplate do |e|
self.formats = [:html]
render "#{params[:action]}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment