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

Rails 3.1 support? #7

Open
brookr opened this issue Aug 26, 2011 · 4 comments
Open

Rails 3.1 support? #7

brookr opened this issue Aug 26, 2011 · 4 comments

Comments

@brookr
Copy link

brookr commented Aug 26, 2011

Not really an issue, more like a feature request. :)

I'm new to Rails 3, and gave this a go under Rails 3.1... but didn't get very far.

Do you have a sense of how difficult it will be to get this project upgraded to Rails 3.1? I may try, but there's a lot I'm needing to learn along the way...

Thanks for maintaining such a useful template!

@DanielKehoe
Copy link
Collaborator

Thanks for expressing your interest. It's on my to-do list. No sense yet of the issues involved. Let me know if you make progress, please.

-- Daniel

@ghost
Copy link

ghost commented Nov 16, 2011

Thanks a lot for this tuts... that's exactly all I want to know about...subdomains !
I am also using Rails 3.1, and I have an issue with the url_helper ,

in my subdomains sites I have links in the sidebar :
%ul
%li= link_to "Home", root_path
%li= link_to "Plans", plans_url

obviously the root_path is related to the subdomain .. fine , but the plans_url should link to the main site ...
and url_for in the url_helper.rb is NEVER called .....

seems to be a Rails 3.1 related issue :
rails/rails#2025

running correctly w :host => request.domain
i.e. plans_url(:host => request.domain)

@DanielKehoe
Copy link
Collaborator

Take a look at
https://github.com/RailsApps/rails3-subdomains
(a new example and tutorial for Rails 3.1).

I had to use
blah_url(:host => request.domain)
because
blah_url(:subdomain => false)
didn't work.

Seems the Rails 3.1 issue may be unresolved. I suggest to test further and reopen the Rails issue.

-- Daniel

@ghost
Copy link

ghost commented Nov 16, 2011

Thanks
that's what I finally used .. plans_url(:host => request.domain)

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

2 participants