Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rails 3 constraint for domain-specific routing
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.rspec
Gemfile
Gemfile.lock
README.rdoc
Rakefile
host_constraint.gemspec

README.rdoc

HostConstraint

config/routes.rb

constraints HostConstraint::Constraint.new("mn", "mn.molinos.ru", "www.mn.molinos.ru") do
  ... # Works only for mn, mn.molinos.ru, www.mn.molinos.ru hosts
end

TODO

1. Regexps in hostname.
2. :www, :port, etc.
Something went wrong with that request. Please try again.