Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:subdomain not working #29

Open
alekseenkoss77 opened this issue Oct 13, 2012 · 3 comments
Open

:subdomain not working #29

alekseenkoss77 opened this issue Oct 13, 2012 · 3 comments
Assignees

Comments

@alekseenkoss77
Copy link

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
Copy link
Collaborator

pboling commented Oct 13, 2012

try installing like this:

gem install subdomain-fu -v 1.0.0.beta3

@ghost ghost assigned pboling Oct 13, 2012
@riley-usagi
Copy link

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
Copy link
Collaborator

pboling commented Oct 14, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants