Rails: How to cancel current statements in rails console?

孤街浪徒 提交于 2019-12-04 09:19:55
Anil

At the prompt, you can use the following command to control the irb session.

conf.ignore_sigint= true/false

This specifies the behavior of ^C (control-c). If false, ^C will quit irb. If true, ^C during input will cancel input and return to the top level; during execution, ^C will abort the current operation.

On the underside, rails console uses IRB. Also see:

http://www.rubycentral.com/pickaxe/irb.html

Edit

rubycentral.com link is dead.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!