wbaskw
Last Updated: February 25, 2016
·
398
· devatotech
Avatar square

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)

Say Thanks
Respond