当前位置: 动力学知识库 > 问答 > 编程问答 >

irb - Is it possible to automatically show timestamps in Rails console?

问题描述:

After I start the Rails console, I see a prompt like this:

Loading production environment (Rails 4.x.y.z)

irb(main):001:0>

How can I customize Rails/irb such that each line, instead of showing :001:0>, shows something like :001:0|2016-06-20T16:42:57-04:00>?

网友答案:

I don't know if it is actually possible to add the timestamp in based on the options that are available from the documentation.

Another thread about similar

Official Documentation

分享给朋友:
您可能感兴趣的文章:
随机阅读: