Puts doesn't work in web_console
jsonck opened this issue · 2 comments
jsonck commented
gsamokovarov commented
Puts prints the text to the standard output, e.g. the terminal which runs the development rails server. We don't capture it, because it's global for the program, which can be problematic on thread-based development servers. You can see the puts output on the rails server terminal tab or window.
jsonck commented
Thanks. I do however need this to work for my use case, and the product owner is persistent. Do you have a suggestion on how I could go about capturing puts from web_console on a forked branch? Can I create an alternative method that runs away from the global program that will achieve the same desired result of printing something to the console?