# Disabling echo in script/console?

**URL:** <https://www.ruby-forum.com/t/disabling-echo-in-script-console/73647>\
**Category:** Rails\
**Created:** [October 25, 2006, 11:02pm UTC](https://www.ruby-forum.com/t/disabling-echo-in-script-console/73647 "2006-10-25T23:02:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [October 25, 2006, 11:02pm UTC](https://www.ruby-forum.com/t/disabling-echo-in-script-console/73647/1 "2006-10-25T23:02:25Z")

</div>

How do I disable echo in /script/console? Every time I select an object,  
for example, its entire contents get output.

Thanks,  
Joe

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [October 25, 2006, 11:14pm UTC](https://www.ruby-forum.com/t/disabling-echo-in-script-console/73647/2 "2006-10-25T23:14:47Z")

</div>

> How do I disable echo in /script/console? Every time I select an object,  
> for example, its entire contents get output.

Not ideal, but you can do:

var = Model.find(123); 0

At least I think that’s what I saw posted awhile back… it will still  
return “0” but at least not your entire model.

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [October 26, 2006, 12:52am UTC](https://www.ruby-forum.com/t/disabling-echo-in-script-console/73647/3 "2006-10-26T00:52:55Z")

</div>

Hello Joe,

> How do I disable echo in /script/console? Every time I select an object,  
> for example, its entire contents get output.

you can create a .irbrc in your RAILS\_ROOT directory and put inside :

IRB.conf[:INSPECT\_MODE] = false

not exactly what you want, but less verbose (irb is using #to\_s instead  
of #inspect, so the result can be weird)

(note that if you launch irb in your RAILS\_ROOT dir, it will be affected  
as well 🙂

HTH,

```
-- Jean-FranÃ§ois.

```

–  
Ã? la renverse.
