Ruby on rails Ruby中的Yaml加载错误
我在应用程序目录中执行rake操作时出现此错误,看起来YAML加载失败。 有人能帮忙吗? 谢谢Ruby on rails Ruby中的Yaml加载错误,ruby-on-rails,yaml,Ruby On Rails,Yaml,我在应用程序目录中执行rake操作时出现此错误,看起来YAML加载失败。 有人能帮忙吗? 谢谢 看起来config文件夹中的database.yml被弄乱了 第880行尝试加载该文件: YAML::load(ERB.new(IO.read(database_configuration_file)).result # elsewhere def default_database_configuration_file File.join(root_path, 'config', 'databa
看起来config文件夹中的
database.yml
被弄乱了
第880行尝试加载该文件:
YAML::load(ERB.new(IO.read(database_configuration_file)).result
# elsewhere
def default_database_configuration_file
File.join(root_path, 'config', 'database.yml')
end
如果你想要答案,你必须提供相关信息。错误消息非常清楚地说明了错误:数据库.yml的
第26行有错误。但由于您还没有告诉我们第26行实际上是什么,所以无法回答您的问题。您能包含database.yml文件吗?
YAML::load(ERB.new(IO.read(database_configuration_file)).result
# elsewhere
def default_database_configuration_file
File.join(root_path, 'config', 'database.yml')
end