Skip to content

Instantly share code, notes, and snippets.

@koichiro
Created February 13, 2009 08:00
Show Gist options
  • Save koichiro/63785 to your computer and use it in GitHub Desktop.
Save koichiro/63785 to your computer and use it in GitHub Desktop.
class HogeController < ActionController::Base
def show
error_code = 505
respond_to do |format|
format.xml { render "error", :status => error_code }
format.html { render "error", :status => 500 }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment