简体   繁体   English

编辑Ruby网站的登录页面

[英]Editing the landing page of a Ruby site

Need a bit of help with a Ruby site. 在Ruby网站上需要一些帮助。 It was developed by an agency that closed its doors and now I'm the only left to maintain it. 它是由一家关门的机构开发的,现在我是唯一维护它的人。 It uses a custom Ruby on Rails (I assume?) CMS. 它使用自定义的Ruby on Rails(我想是?)CMS。 I only need to edit one line of static text but have no experience with Ruby at all. 我只需要编辑一行静态文本,却完全没有使用Ruby的经验。 It's in a separate div but the page is generated on the fly and I have no idea where the text is pulled from. 它在单独的div中,但是页面是动态生成的,我不知道文本是从哪里提取的。 No amount of grepping yielded anything. 没有任何grepping产生任何东西。 Only thing I tracked down is that one of the slices has a line like 我唯一追踪到的是切片中的一条像

<div class="vcard"><%= textilize(slice.address) %></div>

This is where I need to change things but I'm stumped. 这是我需要改变的地方,但是我很沮丧。

I actually managed to fix it in the meantime. 在此期间,我实际上设法对其进行了修复。 I made a complete dump of the MongoDB database, edited it locally with a GUI then replaced it on the server. 我对MongoDB数据库进行了完整的转储,使用GUI在本地对其进行了编辑,然后在服务器上进行了替换。 Hack job, I know, but it worked. 我知道,工作很辛苦,但是很奏效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM