| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
- Handle scenario where @posts is empty.
|
|\ |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
translation strings"
Reason: After another round of discussion, it has been
decided to let interpolation deal with unsafe strings
as it should do.
This reverts commit d57d8098fc269a26ea0051a9027a33af1a9a4b2b.
|
| | |
|
|\ \
| | |
| | | |
Fix impractical I18n lookup in nested fields_for
|
| | | |
|
|/ /
| |
| |
| | |
We are using @calculated_ip.
@calculate_ip is no where used
|
| | |
|
|\ \
| | |
| | | |
Fixes for Request#remote_ip (no middleware, all proxies)
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
This reverts commit 8d1a2b3ecde5a8745b3eaab4763a71d80ca3441f, because I have fixed the issues this commit caused in the next commit.
|
|\ \ \
| |/ /
|/| | |
CSS fix to prevent error output from being breaking out of body element.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Using the white-space: pre-wrap adds extra line breaks to prevent the text from breaking out of the element's box. In this case single line output can be extremely long, breaking out the <body> element.
See for reference: http://www.quirksmode.org/css/whitespace.html
Before: http://link.olivierlacan.com/BVU4
After: http://link.olivierlacan.com/BUfM
|
| | |
| | |
| | |
| | | |
This is for windows compatibility. Fixes #3644.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit 6491aadc525b8703708e0fd0fbf05bd436a47801, reversing
changes made to 83bf0b626cf2134260903e57d74f67de57384073.
See https://github.com/rails/rails/pull/3640#issuecomment-2752761 for
explanation.
|
| | | |
|
| | |
| | |
| | | |
This was an especially nasty bug introduced in 317f4e2, by the way that an instance of GetIp is not nil, but GetIp#to_s could sometimes return nil. Gross, huh?
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/
|/| |
|
|\ \ |
|
| | | |
|
|\ \ \
| | | |
| | | | |
refactor RemoteIp middleware
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- return the last forwarded IP before REMOTE_ADDR to handle proxies
- remove completely superfluous RemoteIpGetter class
- remove duplication of trusted proxies regexp
- remove unused constant from Request
- move comments from Request to where they are actually relevant
- edit comments for clarity of purpose
The original code (confusingly) tried to return REMOTE_ADDR both at the beginning and the end of the chain of options. Since REMOTE_ADDR is _always_ set, this is kind of silly. This change leaves REMOTE_ADDR as the last option, so that proxied requests will be assigned the correct remote IP address.
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Fix wording and minor typos in the Responder RDoc
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Fix and simplify highlight regexp
|
| | |/ /
| |/| | |
|
|\ \ \ \
| |/ / /
|/| | | |
AC::Metal#response_body= stores different value in Ruby 1.8 and 1.9
|
| | | |
| | | |
| | | |
| | | | |
This was because String#respond_to?(:each) differs in 1.8 and 1.9
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Conflicts:
railties/guides/source/active_record_querying.textile
|
| | | | | |
|
| |/ / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
numeric addresses.
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'
|
| | | | |
|
|/ / / |
|
|\ \ \ |
|
| | | | |
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The bug is that an error would be raised while attempting to convert a
template from one encoding to another.
Please see http://redmine.ruby-lang.org/issues/5564 for more details.
The workaround is to load all conversions into memory ahead of time,
and will only happen if the ruby version is *exactly* 1.9.3p0. The
hope is obviously that the underlying problem will be resolved in
the next patchlevel release of 1.9.3.
|
|\ \ \ |
|
| | | | |
|