Comments (6)
It looks like the 0.4 gem broke the concept of xxx_path(:subdomain=>'abc') returning a fully qualified domain if the subdomain option is passed and is not the same as current, since it stopped working when I upgraded to 0.4 and havent moved to SnowLeopard yet. A workaround is to use xxx_url(:subdomain=>'abc')
from subdomain-fu.
Yes you are correct, i also noticed it was the new version causing problems, when i downgraded the gem as a last resort.
I mistakenly thought it had something to do with Snow Leopard, because i updated all the gems after the upgrade.
from subdomain-fu.
Same problem with 0.4, thanks for the workaround.
from subdomain-fu.
Same issue, still on Leopard, obviously an issue with the plugin.
from subdomain-fu.
Actually, from looking over the code it appears there is a new setting. So I believe SubdomainFu.override_only_path=true should return the behavior to what it was before
from subdomain-fu.
@twalpole is correct. I believe the README just needs to be updated. By default :only_path will be honored. If you want the previous (and in my opinion misleading) behavior set SubdomainFu.override_only_path to true in your application configuration.
from subdomain-fu.
Related Issues (20)
- Crash when requesting URL with tld_size different than expected HOT 2
- Routing a controller only to a subdomain
- current_domain returns wrong domain
- Rails3 - no such file to load -- action_controller/url_rewriter HOT 7
- miss routing ajax request
- rspec redirect_to matcher fails if route only exists for a subdomain HOT 3
- default to :subdomain => false for all routes HOT 2
- current_domain includes port
- plugin does honor the :only_path notion of routing when doing so goes against the intent of the command
- Exceptions thrown when someone requests without Host: HTTP header HOT 2
- Failure when generating links in background jobs
- Server won't load; rails/init HOT 1
- current_subdomain in test alway is "test" HOT 2
- Gem won't load in with Bundler 1.1.2, Ruby 1.9.3 HOT 1
- uninitialized constant ActionDispatch::Routing::RouteSet::Mapper HOT 2
- url_for unexpected behaviour HOT 1
- :subdomain not working HOT 3
- Release 1.0.0 HOT 3
- session store issue
- Incompatible with Rails 4.2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from subdomain-fu.