如何查看整个 Rails 控制台历史记录? [英] How to view the entire Rails console history?

查看:45
本文介绍了如何查看整个 Rails 控制台历史记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何在 Rails 控制台中查看历史记录"?

Does anyone know how to view the "history" in the rails console?

按向上箭头可让我遍历最近的命令,但我希望将它们全部放在一个列表中.我基本上是在寻找与 Unix history 实用程序等效的 rails.

Pressing the up arrow lets me iterate through recent commands, but I'd like to see them all together in a list. I'm basically looking for the rails equivalent of the Unix history utility.

这在 Rails 中可行吗?如果是这样,如何?

Is this possible in rails? If so, how?

推荐答案

~/.irb-history,你会在那里找到历史.

Look at ~/.irb-history, you will find the history there.

这篇关于如何查看整个 Rails 控制台历史记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆