mbleigh / subdomain-fu

A new plugin approach to attempting to solve the usage of subdomains in linking and routing in Rails projects.
http://rdoc.info/projects/mbleigh/subdomain-fu
Other
586 stars 118 forks source link

:subdomain not working #29

Open alekseenkoss77 opened 11 years ago

alekseenkoss77 commented 11 years ago

Hi! I install subdomain-fu successfully and read the documentation. I was used "url_for" method in my layout file with :subdomain option. But I not get result :(

url_for(:controller => "main", :action => "index", :subdomain => "bar")

I have development version on Webrick. url_for return "lvh.me" without subdomain What's the problem?

pboling commented 11 years ago

try installing like this:

gem install subdomain-fu -v 1.0.0.beta3

riley-usagi commented 8 years ago

I have the same error, but:

gem install subdomain-fu -v 1.0.0.beta3
ERROR:  Could not find a valid gem 'subdomain-fu' (= 1.0.0.beta3) in any repository
pboling commented 8 years ago

That comment was from 3 years ago. At this point try using the master branch. This gem hasn't been released in 5 years, people still using it are probably using the master branch, or a fork. Look at the forks here: https://github.com/mbleigh/subdomain-fu/network

Also there are now other subdomain solutions, and it is likely you can do what you want with just Rails.

^ None of those require any additional gems at all. Just Rails.