wbaskw
Last Updated: February 25, 2016
·
550
· devatotech

Remove new lines from Rails Base64 Encode

In the docs you'll find this:

event = Base64.encode64(@user.email)

But to remove \n use:

event = Base64.strict_encode64(@user.email)