I just finished deploying a Rails application onto a subdomain of a site that has WordPress installed on the root domain. Unfortunately, WordPress’ htaccess rules made it a little bit more difficult to launch than expected.
Here’s what I did to get Rails and WordPress to play nicely together:
The usual weekly round up for some of my favorite links this week:
will_paginate is my gem if choice when it comes to introducing pagination into a Rails application. It’s really easy to setup assuming that you’re going to be paging through Active Record collections.
It’s possible to page through non-ActiveRecord collections but requires slightly different arguments.
In a number of recent projects, I’ve been needing to provide an overlay of sorts over an entire page or a number of elements on a page. Unfortunately, most options ship with extra weight – they include support for modal dialogs or some type of lightbox overlay all of which was overkill for what I needed.
To that end, I ended up writing a lightweight plugin that makes adding overlays trivially easy. Continue reading
Collected a bunch of stuff over the past two weeks (from vacation up until now).