Entries Tagged as 'rails'

Saturday, May 30th, 2009

How to integrate punBB into an existing Ruby on Rails application

A quick tutorial on how to integrate the punBB forum system into an existing Rails application with a single sign-on for both systems.

Thursday, May 28th, 2009

Rails IE Bug with Excel Mime Types

Another example of why IE is awful and a gotcha to lookout for in your Rails app

Wednesday, May 20th, 2009

Setting Static Asset Expires Headers with nginx and Passenger

How to set HTTP expires headers for your static assets when running nginx+passenger

Tuesday, May 19th, 2009

Rails plugin install from specific git branch

How to install a rails plugin from a specific tag or branch in a git repository

Sunday, May 17th, 2009

Getting Capistrano’s web:disable To Work With Nginx

Recently I deployed a new Ruby on Rails application using nginx+passenger instead of the usual apache+passenger configuration.
As a result, I couldn’t use the traditional Apache rewrite rules to display the maintenance.html page if it existed.
Here are the necessary corresponding rewrite rules for nginx to achieve the same effect.

if (-f $document_root/system/maintenance.html) {
rewrite [...]