Skip to content

Instantly share code, notes, and snippets.

View cis-deepesh's full-sized avatar

Deepesh Kakani cis-deepesh

View GitHub Profile
How to setup Heroku Hostname SSL with GoDaddy SSL Certificate and Zerigo DNS
Heroku recently added an exciting new 'Hostname SSL' option. This option offers the broad compatibility of IP-based SSL, but at 1/5 the price ($20 / month at the time of this writing).
The following tutorial explains how to use Heroku's new 'Hostname SSL' option on your Heroku project. Before we begin, let's list what we're using here:
* Heroku Hostname SSL
* GoDaddy Standard SSL Certificate
* Zerigo DNS
@cis-deepesh
cis-deepesh / I18n_routing_common.rb
Created July 20, 2012 11:34 — forked from Marchino/I18n_routing_common.rb
How I made I18n_routing working with Devise. Couldn't translate routing scopes in any way, so I added a little workaround to the gem and...
# I18n_routing/lib/I18n_routing_common.rb
# Return the correct translation for given values
def self.translation_for(name, type = :resources, option = nil)
# First, if an option is given, try to get the translation in the routes scope
if option
default = "{option}Noi18nRoutingTranslation"
t = I18n.t(option, :scope => "routes.#{name}.#{type}", :default => default)
return (t == default ? nil : t)
else