- 23 5月, 2014 1 次提交
-
-
由 Dan Langevin 提交于
URL generation with trailing_slash: true was adding a trailing slash after .:format Routes.draw do resources :bars end bars_url(trailing_slash: true, format: 'json') # => /bars.json/ This commit removes that extra trailing slash
-
- 21 5月, 2014 5 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 11 5月, 2014 2 次提交
-
-
由 Andrew White 提交于
There may be situations where you need to tunnel SSL connections over port 80 so we shouldn't remove it if it has been explicitly provided.
-
由 Guilherme Cavalcanti 提交于
-
- 10 5月, 2014 3 次提交
-
-
由 Aaron Patterson 提交于
This lets us avoid 1. A slow call to Hash#slice 2. An is_a? test 3. Extra hash allocations (from slice) 4. String allocations etc.
-
由 Aaron Patterson 提交于
avoids extra hash allocations on each call
-
由 Aaron Patterson 提交于
-
- 19 4月, 2013 3 次提交
-
-
由 Andrew White 提交于
Add support for extracting the port from the :host option and for removing the subdomain by using nil, false or ''.
-
由 Andrew White 提交于
-
由 Derek Watson 提交于
Adding a boolean route constraint checks for presence/absence of request property
-
- 20 3月, 2013 1 次提交
-
-
由 schneems 提交于
If the host in `default_url_options` is accidentally set with a protocol such as ``` host: "http://example.com" ``` then the generated url will have the protocol twice `http://http://example.com` which is not what the user intended. Likely they wanted to define a host `host: "example.com"` and a `protocol: "http://"` but did not know the convention. This may not the most common problem, but when it happens it can go undetected for a while. I accidentally added `http://` out of habit recently only to find all the links in my emails were broken after deploying a demo site to production. Rather than allow this accident go undetected, we can fix the problem in line by properly setting the protocol and host. I was able to find this related question on stack overflow: http://stackoverflow.com/questions/5878329/rails-3-devise-how-do-i-make-the-email-confirmation-links-use-secure-https-n where the answer was highly upvoted. This is based off of work in #7415 cc/ @pixeltrix ATP Action Mailer and Action Pack
-
- 19 2月, 2013 1 次提交
-
-
由 Miha Filej 提交于
Allows us to use url_for and friends in isolation.
-
- 17 1月, 2013 1 次提交
-
-
由 Yves Senn 提交于
-
- 03 1月, 2013 1 次提交
-
-
由 Yves Senn 提交于
-
- 20 11月, 2012 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
Merge url for tests and add changelog entry for #8233.
-
由 tumayun 提交于
With a "params" argument, the following error is raised: undefined method `reject!` for "":String
-
- 16 11月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Use if..else conditions instead of return guards. Use _ for not used arguments when iterating. Set the path variable directly instead of using an empty string and <<.
-
- 10 8月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 25 4月, 2012 1 次提交
-
-
由 José Valim 提交于
-
- 24 4月, 2012 1 次提交
-
-
由 Bogdan Gusiev 提交于
Separated right side url generation(before query string) from left side url generation(after query string)
-
- 02 3月, 2012 1 次提交
-
-
由 José Valim 提交于
-
- 13 1月, 2012 3 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
- 14 12月, 2011 1 次提交
-
-
由 choonkeat 提交于
* e.g. blog_url(subdomain: current_user) instead of blog_url(subdomain: current_user.to_param)
-
- 08 11月, 2011 1 次提交
-
-
由 Bradford Folkens 提交于
See-also pull request #3561 from 3-1-stable Otherwise the following occurs: TypeError: can't convert nil into String /Users/bfolkens/dev/bfolkens-rails-core/actionpack/lib/action_dispatch/http/url.rb:75:in host_or_subdomain_and_domain' /Users/bfolkens/dev/bfolkens-rails-core/actionpack/lib/action_dispatch/http/url.rb:37:in url_for' /Users/bfolkens/dev/bfolkens-rails-core/actionpack/lib/action_dispatch/routing/url_for.rb:147:in test_subdomain_may_be_accepted_with_numeric_host' /Users/bfolkens/dev/bfolkens-rails-core/activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in run' /Users/bfolkens/dev/bfolkens-rails-core/activesupport/lib/active_support/callbacks.rb:426:in send' /Users/bfolkens/dev/bfolkens-rails-core/activesupport/lib/active_support/callbacks.rb:81:in run'
-
- 14 10月, 2011 1 次提交
-
-
由 Jeremy Kemper 提交于
-
- 04 10月, 2011 2 次提交
-
-
由 José Valim 提交于
-
由 Kamil Sobieraj 提交于
: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
-
- 13 9月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 05 5月, 2011 2 次提交
-
-
由 Josh Kalderimis 提交于
-
由 José Valim 提交于
-
- 09 3月, 2011 1 次提交
-
-
由 Andrew White 提交于
-
- 03 2月, 2011 1 次提交
-
-
由 Stephen Celis 提交于
[#5774 state:committed] Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 03 12月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 30 11月, 2010 1 次提交
-
-
由 Josh Kalderimis 提交于
The redirect routing method now allows for a hash of options which only changes the relevant parts of the url, or an object which responds to call can be supplied so common redirect rules can be easily reused. This commit includes a change where url generation from parts has been moved to AD::Http::URL as a class method.
-