2009-12-12から1日間の記事一覧
エラーのクラスを見て処理を振り分けるメソッド。rescue_actionでcase whenしてるのであんまつかわんけど一応メモ rescue_from ActiveRecord::RecordInvalid, :with => :show_errors rescue_from 'MyAppError::Base' do |exception| render :xml => exceptio…
エラーのクラスを見て処理を振り分けるメソッド。rescue_actionでcase whenしてるのであんまつかわんけど一応メモ rescue_from ActiveRecord::RecordInvalid, :with => :show_errors rescue_from 'MyAppError::Base' do |exception| render :xml => exceptio…