and it kept on printing my error message as Errors\nError message 1\nError message2 - note that the newline characters were being escaped and rendered literally
page.alert 'Errors\nError 1\nError 2'
I found this informative post which lead me to change my code from using single quotes to using double quotes - nasty.
page.alert "Errors\nError 1\nError 2"
# rjs file
# helper file
__s = "Errors "
firstname.lastname@example.org_messages.each do error
____s = s + "\n" + error.to_s