rails: named_url and url_for: subdomain => false doesn't work
Trying to use it as
= link_to "Me", user_url(@current_user.id, :subdomain => false)
In rails 3.1rc4
Apparently it has never worked.
About this issue
- Original URL
- State: closed
- Created 13 years ago
- Comments: 15 (10 by maintainers)
Commits related to this issue
- Remove subdomain with :subdomain => '' on url_for [#2025 state:committed] — committed to dcadenas/rails by dcadenas 13 years ago
- :subdomain can now be specified with a value of false in url_for, allowing for subdomain(s) removal from the host during link generation. Closes #2025 — committed to ksob/rails by ksob 13 years ago
- :subdomain can now be specified with a value of false in url_for, allowing for subdomain(s) removal from the host during link generation. Closes #2025 — committed to ksob/rails by ksob 13 years ago
- :subdomain can now be specified with a value of false in url_for, allowing for subdomain(s) removal from the host during link generation. Closes #2025 — committed to ksob/rails by ksob 13 years ago
- Redirect to a subdomain-less URL when accessing the root_path. Ref: https://github.com/rails/rails/issues/2025#issuecomment-2270689. — committed to pencilcasestudios/BillUp by smaboshe 13 years ago
+1 for @ksob commit.
For now it looks like you can get rid of subdomains with: