Created
August 23, 2017 20:46
-
-
Save marcusshepp/5a97a08a6c3b6a329b163232d9aef722 to your computer and use it in GitHub Desktop.
puts not working in rails project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# puts string was not working, these are a few work arounds | |
def puts(s) | |
Rails.logger.info(s) | |
end | |
File.open("debug.txt", ""){|f|f.write('foo')} | |
raise "foo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment