, message: {body: " "} endHTTP_REFERER was set in the request to this action, so redirect_to :back could not be called successfullyIf this is a test, make sure t
即使我可以捕获从@post.save引发的异常并记录错误并打印线程 if @post.save
# rescue Errno::ECONNREFUSED=> ex Rails.logger.error "ERROR: Could not save blog post!Exception: #{ex}"
它仍然在网页上出现错误,并且没有在堆栈跟踪中显示