elm-city-craftworks/practicing-ruby-web — pull request #65 by jordanbyron (2012-07-11 15:32:07+00:00)
Title: Add subscribe url and hook to signup form on landing page

This pull request allows us to easily track subscription requests and provides pretty urls for new subscribers (#58)

`http://practicingruby.com/subscribe` will redirect to mail chimp's [signup form](http://eepurl.com/fjxR2). If the `email` parameter is included in the request, it will be forwarded along to mail chimp.

For the landing page, I've kept mail chimp's form so new subscribers don't have to click "subscribe" twice: Once on our site and again in Mail Chimp. To make sure we still track that information, I've added a tiny javascript callback which will ping us first and then send the user's information over to mail chimp.