Ported site from PHP to Ruby/Rails