Combining Word Press with a Rails App using nginx proxy_passJanuary 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.
Pygments.rbOctober 30, 2012 |
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)
New Horizons LandDecember 04, 2012 |
New Horizons Land is a multilingual real-estate site I designed and developed back in 2007. I believe its running Rails 1.1.7.
Strength TapeDecember 04, 2012 |
Lead a team to change lifestrength.com to use other layouts and display different products when accessed through www.strengthtape.com.