Disabling echo in script/console?

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

Thanks,
Joe

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.

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 :slight_smile:

HTH,

-- Jean-François.


Ã? la renverse.