Skip to content

Instantly share code, notes, and snippets.

@jhubert
Created January 11, 2011 08:14
Show Gist options
  • Save jhubert/774191 to your computer and use it in GitHub Desktop.
Save jhubert/774191 to your computer and use it in GitHub Desktop.
The configuration file for the Refraction Gem to add www. to a domain
Refraction.configure do |req|
req.permanent! :host => "www.mydomain.com" if req.host !~ /^www./
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment