Skip to content

Commit 474c407

Browse files
authored
Merge pull request rails#53867 from robin850/nitpicks-ac-advanced-topics
Fixes in Action Controller Advanced Topics guide
2 parents 3f838c9 + 48e35f9 commit 474c407

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

guides/source/action_controller_advanced_topics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ credentials are hashed instead and a
182182
is sent.
183183

184184
Using digest authentication with Rails can be done by using
185-
the[`authenticate_or_request_with_http_digest`][] method:
185+
the [`authenticate_or_request_with_http_digest`][] method:
186186

187187
```ruby
188188
class AdminsController < ApplicationController
@@ -199,7 +199,7 @@ class AdminsController < ApplicationController
199199
end
200200
```
201201

202-
The`authenticate_or_request_with_http_digest` block takes only one argument -
202+
The `authenticate_or_request_with_http_digest` block takes only one argument -
203203
the username. The block returns the password if found. If the return value is
204204
`false` or `nil`, it is considered an authentication failure.
205205

@@ -212,7 +212,7 @@ Token authentication (aka "Bearer" authentication) is an authentication method
212212
where a client receives a unique token after successfully logging in, which it
213213
then includes in the `Authorization` header of future requests. Instead of
214214
sending credentials with each request, the client sends this
215-
[token]((https://api.rubyonrails.org/classes/ActionController/HttpAuthentication/Token.html))
215+
[token](https://api.rubyonrails.org/classes/ActionController/HttpAuthentication/Token.html)
216216
(a string that represents the user's session) as a "bearer" of the
217217
authentication.
218218

0 commit comments

Comments
 (0)