2011-04-19 4 views

답변

0

물론 가능합니다.

error Mongoid::Errors::DocumentNotFound do 
    #pass the id's to the view 
    haml :mongoiderror, :locals => { :ids => request.env['sinatra.error'].identifiers } 
end 
:

는시나의 Mongoid 예외에 대한 오류 처리기를 작성

관련 문제