Did you know that you can navigate the posts by swiping left and right?
Few days ago I extracted mailer classes out of our monolith app. I created a new, small Rails 4 application which consumes RabbitMQ queue and sends emails to users. We use Sendgrid’s subscription tracking. We use particularly a placeholder, which Sendgrid replaces by unsubscription url.
The problem was, that the placeholder [unsubscribe] was replaced by a bogus URL like
x-msg://447/\[unsubscribe\]. It turns out, that Rails 4 encodes automatically all URLs in emails.
Sendgrid does not decode these URLs, so I needed to encode the placeholder.
I hope that this will save you some time.