andrewleung
andrewleung

Reputation: 572

How to get output from Rails Runner?

I'm working on a Rails Runner script and I want to see what values are set in a variable in the script?

Usual puts doesn't work...

Upvotes: 4

Views: 3105

Answers (1)

andrewleung
andrewleung

Reputation: 572

Ahh. Figured it out, use STDOUT.flush after each puts in the script.

http://redgreenrepeat.com/2016/08/20/til-feedback-in-rails-runner/

Upvotes: 5

Related Questions