This quick post is about some Paperclip-related code that I see quite frequently that could cause problems. It’s easy to miss this stuff in development and then get major headaches later.
Contents Configure Keepalived and Nginx Configure HA Proxy Configure Thin Overview Nginx and HA Proxy have similar functions: they can both be used as reverse proxies and load balancers. In our case Nginx will be the reverse proxy and HA Proxy will be the load balancer. Nginx is great for dealing with SSL encryption, gzip […]
Why write your own lightbox? The simple answer is: to learn how it’s done. If you’re going to use if for an image gallery, embed flash and videos or even to load Ajax content you are probably better off using one of the many existing lightbox plugins (Thickbox, FancyBox). If you plan to use a […]
How to add multiple images to a rails model – all in one form!
The Problem When working on a site for a customer under a development domain I noticed that the ‘Last 5 Search Terms’ and the ‘Top 5 Search Terms’ entry on the dashboard had thousands of hits.