Isaac Sloan - Web Developer, Photographer, Musician and Citizen of Earth
Banner700

Combining Word Press with a Rails App using nginx proxy_pass

January 15, 2013

Despite our love for Ruby we sometimes find ourselves with clients who want to keep their Wordpress blog in conjunction with their shiny new Rails app. The most obvious way to do this is to run it on a different subdomain (blog.domain.com), but this presents an SEO problem because your blog which is often one of the most useful tools for attracting people is now on a different domain.

The Solution:

Combining Word Press with a Rails App using nginx proxy_pass

Pygments.rb

October 30, 2012
Thumb_681054main_pia16105-full_full_copy

Here is some useful code for syntax highlighting. Borrowed from Ryan Bates

module ApplicationHelper
  class HTMLwithPygments < Redcarpet::Render::HTML
    def block_code(code, language)
      sha = Digest::SHA1.hexdigest(code)
      Rails.cache.fetch ["code", language, sha].join('-') do
        Pygments.highlight(code, lexer: language)
      end
    end
  end

  def markdown(text)
Pygments.rb

Upillar

December 05, 2012
Thumb_screenshot_12_5_12_3_29_pm

Upillar is an online classifieds site I have been working for since 2007.

Upillar

New Horizons Land

December 04, 2012
Thumb_screenshot_12_3_12_7_55_pm

New Horizons Land is a multilingual real-estate site I designed and developed back in 2007. I believe its running Rails 1.1.7.

New Horizons Land

Strength Tape

December 04, 2012
Thumb_screenshot_12_3_12_7_51_pm

Lead a team to change lifestrength.com to use other layouts and display different products when accessed through www.strengthtape.com.

Strength Tape