â [Rails] erase_render_results 㧠render ããã£ã³ã»ã« ãã¸ãã¹ãã¸ãã¯ãè¤éã«ãªã£ã¦ããã®ã§after_filterã§ãããããã£ã«ã¿ãªã³ã°ããããã«ãã¦ãåé¡ããã£ãã RecordNotFound ã raise ããããã«ããã¨ãããrender2åãã£ã¡ããã¡ã£ã¦è¨ãããã®ã§ããerase_render_resultsããã¤ããããããªã®ãã£ããã ã¼ã¨ããã¡ã¢ã class ApplicationController < ActionController::Base rescue_from ActiveRecord::RecordNotFound, :with => :record_not_found protected def record_not_found erase_render_results # ã³ã¬ render :file =
{{#tags}}- {{label}}
{{/tags}}