Skip to content

Commit b97b4fa

Browse files
committed
docs: fix missing HTTPS on links [ci-skip]
1 parent b8c6780 commit b97b4fa

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

guides/source/4_1_release_notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Conversation.statuses # => { "active" => 0, "archived" => 1 }
182182
```
183183

184184
See its
185-
[documentation](http://api.rubyonrails.org/v4.1.0/classes/ActiveRecord/Enum.html)
185+
[documentation](https://api.rubyonrails.org/v4.1.0/classes/ActiveRecord/Enum.html)
186186
for a detailed write up.
187187

188188
### Message Verifiers
@@ -338,7 +338,7 @@ for detailed changes.
338338
array. ([Pull Request](https://github.com/rails/rails/pull/9599))
339339

340340
* Added `session#fetch` method fetch behaves similarly to
341-
[Hash#fetch](http://www.ruby-doc.org/core-1.9.3/Hash.html#method-i-fetch),
341+
[Hash#fetch](https://www.ruby-doc.org/core-1.9.3/Hash.html#method-i-fetch),
342342
with the exception that the returned value is always saved into the
343343
session. ([Pull Request](https://github.com/rails/rails/pull/12692))
344344

guides/source/4_2_release_notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ deprecation warnings because it is opt-in.
256256
`rails-deprecated_sanitizer` will be supported for Rails 4.2 only; it will not
257257
be maintained for Rails 5.0.
258258

259-
See [this blog post](http://blog.plataformatec.com.br/2014/07/the-new-html-sanitizer-in-rails-4-2/)
259+
See [this blog post](https://blog.plataformatec.com.br/2014/07/the-new-html-sanitizer-in-rails-4-2/)
260260
for more details on the changes in the new sanitizer.
261261

262262
### `assert_select`

guides/source/5_1_release_notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ This will generate the singular URL `/basket` instead of the usual `/baskets/:id
144144
The `direct` method allows creation of custom URL helpers.
145145

146146
```ruby
147-
direct(:homepage) { "http://www.rubyonrails.org" }
147+
direct(:homepage) { "https://rubyonrails.org" }
148148

149-
homepage_url # => "http://www.rubyonrails.org"
149+
homepage_url # => "https://rubyonrails.org"
150150
```
151151

152152
The return value of the block must be a valid argument for the `url_for`

guides/source/active_record_postgresql.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,10 @@ A point is casted to an array containing `x` and `y` coordinates.
448448

449449
### Interval
450450

451-
* [type definition](http://www.postgresql.org/docs/current/static/datatype-datetime.html#DATATYPE-INTERVAL-INPUT)
452-
* [functions and operators](http://www.postgresql.org/docs/current/static/functions-datetime.html)
451+
* [type definition](https://www.postgresql.org/docs/current/static/datatype-datetime.html#DATATYPE-INTERVAL-INPUT)
452+
* [functions and operators](https://www.postgresql.org/docs/current/static/functions-datetime.html)
453453

454-
This type is mapped to [`ActiveSupport::Duration`](http://api.rubyonrails.org/classes/ActiveSupport/Duration.html) objects.
454+
This type is mapped to [`ActiveSupport::Duration`](https://api.rubyonrails.org/classes/ActiveSupport/Duration.html) objects.
455455

456456
```ruby
457457
# db/migrate/20200120000000_create_events.rb

guides/source/routing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,11 +974,11 @@ You can create custom URL helpers directly by calling [`direct`][]. For example:
974974

975975
```ruby
976976
direct :homepage do
977-
"http://www.rubyonrails.org"
977+
"https://rubyonrails.org"
978978
end
979979

980980
# >> homepage_url
981-
# => "http://www.rubyonrails.org"
981+
# => "https://rubyonrails.org"
982982
```
983983

984984
The return value of the block must be a valid argument for the `url_for` method. So, you can pass a valid string URL, Hash, Array, an Active Model instance, or an Active Model class.

guides/source/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ Rails adds some custom assertions of its own to the `minitest` framework:
355355
| [`assert_nothing_raised { block }`](https://api.rubyonrails.org/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_nothing_raised) | Ensures that the given block doesn't raise any exceptions.|
356356
| [`assert_recognizes(expected_options, path, extras={}, message=nil)`](https://api.rubyonrails.org/classes/ActionDispatch/Assertions/RoutingAssertions.html#method-i-assert_recognizes) | Asserts that the routing of the given path was handled correctly and that the parsed options (given in the expected_options hash) match path. Basically, it asserts that Rails recognizes the route given by expected_options.|
357357
| [`assert_generates(expected_path, options, defaults={}, extras = {}, message=nil)`](https://api.rubyonrails.org/classes/ActionDispatch/Assertions/RoutingAssertions.html#method-i-assert_generates) | Asserts that the provided options can be used to generate the provided path. This is the inverse of assert_recognizes. The extras parameter is used to tell the request the names and values of additional request parameters that would be in a query string. The message parameter allows you to specify a custom error message for assertion failures.|
358-
| [`assert_response(type, message = nil)`](https://api.rubyonrails.org/classes/ActionDispatch/Assertions/ResponseAssertions.html#method-i-assert_response) | Asserts that the response comes with a specific status code. You can specify `:success` to indicate 200-299, `:redirect` to indicate 300-399, `:missing` to indicate 404, or `:error` to match the 500-599 range. You can also pass an explicit status number or its symbolic equivalent. For more information, see [full list of status codes](http://rubydoc.info/github/rack/rack/master/Rack/Utils#HTTP_STATUS_CODES-constant) and how their [mapping](https://rubydoc.info/github/rack/rack/master/Rack/Utils#SYMBOL_TO_STATUS_CODE-constant) works.|
358+
| [`assert_response(type, message = nil)`](https://api.rubyonrails.org/classes/ActionDispatch/Assertions/ResponseAssertions.html#method-i-assert_response) | Asserts that the response comes with a specific status code. You can specify `:success` to indicate 200-299, `:redirect` to indicate 300-399, `:missing` to indicate 404, or `:error` to match the 500-599 range. You can also pass an explicit status number or its symbolic equivalent. For more information, see [full list of status codes](https://rubydoc.info/github/rack/rack/master/Rack/Utils#HTTP_STATUS_CODES-constant) and how their [mapping](https://rubydoc.info/github/rack/rack/master/Rack/Utils#SYMBOL_TO_STATUS_CODE-constant) works.|
359359
| [`assert_redirected_to(options = {}, message=nil)`](https://api.rubyonrails.org/classes/ActionDispatch/Assertions/ResponseAssertions.html#method-i-assert_redirected_to) | Asserts that the response is a redirect to a URL matching the given options. You can also pass named routes such as `assert_redirected_to root_path` and Active Record objects such as `assert_redirected_to @article`.|
360360

361361
You'll see the usage of some of these assertions in the next chapter.

0 commit comments

Comments
 (0)