rescue_from でコントローラごとに例外時のアクションを指定
コントローラで rescue_from を指定することで、そのコントローラで例外が発生したときなどに実行する処理を指定することが出来る。
class UserController < WomanController
rescue_from Exception, :with => :catch_exception
def catch_exception
render :file => '/public/404.html', :status => 404
end
end

