[openstreetmap-website] SotM Banners on the Front Page (#268)

Alex Barth notifications at github.com
Sun May 12 21:11:59 UTC 2013


This technique uses Ruby's `[sample](http://ruby-doc.org/core-2.0/Array.html#method-i-sample)` to pick randomly between the Birmingham and San Francisco ads. 50 % of users will see the Birmingham ad, 50 % of users will see the San Francisco ad.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/268#issuecomment-17785439
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20130512/2cdda69a/attachment.html>


More information about the rails-dev mailing list