我在Action Mailer中有一个非常罕见的行为,我在5个月前实施了一个邮件动作并且它正在运行,但是昨天,由于一些奇怪的原因,它崩溃了.
我有一个邮件布局,为了在我的所有电子邮件中使用它,在其中我渲染之前由过滤器附加的图像
布局= app/views/layouts/email.html.erb
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Visionamos</title>
<link rel="stylesheet" type="text/css" href=<%="/assets/email.css" %>>
</head>
<body>
<table>
<tr>
<td id="head">
<table>
<tr class="image">
<td><%= image_tag(attachments['visionamos.png'].url) %></td>
...
..
.
Run Code Online (Sandbox Code Playgroud)
用户邮件= app/mailers/users.rb
class UsuariosMailer < ActionMailer::Base
include AbstractController::Callbacks # include controller callbacks
default :from => "monitoreo@visionamos.com"
layout "mail" #Set email layout
before_filter :add_inline_attachments! # Add image header for all actions
def otp_password(user, otp_key)
@usuario = user
@code = otp_key
email_with_name = "#{@usuario.nombre} <#{@usuario.email}>"
mail(:to => email_with_name, :subject …Run Code Online (Sandbox Code Playgroud) 当我尝试拉动时,首先出现此错误,因此我删除了我的项目,现在当我尝试克隆时,我收到了同样的错误.
$ git clone
remote: error: Could not read 5011270a43365eb58ad54d4caed71fcbc64e845d
remote: fatal: bad tree object 5011270a43365eb58ad54d4caed71fcbc64e845d
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header
Run Code Online (Sandbox Code Playgroud) 在我的sesions表中我使用请求方法存储国家和城市名称,现在,在ubuntu服务器中它运行良好但在redhat中我收到此错误
NoMethodError (undefined method `city' for nil:NilClass)
Run Code Online (Sandbox Code Playgroud)
我尝试过这个问题的解决方案,我重新启动了我的服务器,但它对我不起作用.
在两台服务器中,我使用的是Passenger + Apache