Archive for the “Ruby on Rails” category

Setting up simple OmniAuth authentication with Facebook

by Monica Olinescu on February 1, 2011

If you have watched Ryan Bates’ tutorial Simple OmniAuth you probably already know OmniAuth is awesome. Ryan doesn’t go into details about setting up OmniAuth with Facebook so this post has a couple of pointers to help out in that (…)

Read the rest of this entry »

Configuring Nginx and Unicorn

by Razvan on July 9, 2010

I first heard about Unicorn in an interview with 37Signal’s server admin Mark Imbriaco and it made me really curious. There are a few great resources explaining how Unicorn works and a neat benchmark comparing Mongrel, Passenger and Unicorn. I (…)

Read the rest of this entry »

Handling paperclip attachments with the same name

by Monica Olinescu on June 16, 2010

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.

Setting up a High Availability Ruby on Rails environment with keepalived, nginx, HA Proxy and Thin on Debian Lenny

by Razvan on May 15, 2010

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 (…)

Read the rest of this entry »

Adding multiple images to a Rails model with paperclip

by Monica Olinescu on February 13, 2010

How to add multiple images to a rails model – all in one form!