Skip to content

Commit 58cebba

Browse files
Fix README.md
1 parent b318019 commit 58cebba

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Table of contents
2525
Usage
2626
-----
2727

28-
Attach [fairing](https://rocket.rs/v0.4/guide/fairings/#fairings) to the Rocket
28+
Attach [fairing](https://rocket.rs/v0.5-rc/guide/fairings/#fairings) to the Rocket
2929
instance:
3030

3131
```rust
@@ -46,7 +46,7 @@ fn rocket() -> _ {
4646
```
4747

4848
You also can configure
49-
[fairing](https://rocket.rs/v0.4/guide/fairings/#fairings):
49+
[fairing](https://rocket.rs/v0.5-rc/guide/fairings/#fairings):
5050

5151
```rust
5252
#[launch]
@@ -63,7 +63,7 @@ fn rocket() -> _ {
6363
}
6464
```
6565

66-
Add [guard](https://rocket.rs/v0.4/guide/requests/#request-guards) to any
66+
Add [guard](https://rocket.rs/v0.5-rc/guide/requests/#request-guards) to any
6767
request where you want to have access to session's CSRF token (e.g. to include
6868
it in forms) or verify it (e.g. to validate form):
6969

@@ -85,8 +85,8 @@ fn create(csrf_token: CsrfToken, form: Form<Comment>) -> Redirect {
8585
```
8686

8787
Get CSRF token from
88-
[guard](https://rocket.rs/v0.4/guide/requests/#request-guards)
89-
to use it in [templates](https://rocket.rs/v0.4/guide/responses/#templates):
88+
[guard](https://rocket.rs/v0.5-rc/guide/requests/#request-guards)
89+
to use it in [templates](https://rocket.rs/v0.5-rc/guide/responses/#templates):
9090

9191
```rust
9292
#[get("/comments/new")]
@@ -98,7 +98,7 @@ fn new(csrf_token: CsrfToken) -> Template {
9898
```
9999

100100
Add CSRF token to your HTML forms in
101-
[templates](https://rocket.rs/v0.4/guide/responses/#templates):
101+
[templates](https://rocket.rs/v0.5-rc/guide/responses/#templates):
102102

103103
```html
104104
<form method="post" action="/comments">
@@ -108,7 +108,7 @@ Add CSRF token to your HTML forms in
108108
```
109109

110110
Add attribute `authenticity_token` to your
111-
[forms](https://rocket.rs/v0.4/guide/requests/#forms):
111+
[forms](https://rocket.rs/v0.5-rc/guide/requests/#forms):
112112

113113
```rust
114114
#[derive(FromForm)]
@@ -118,7 +118,7 @@ struct Comment {
118118
}
119119
```
120120

121-
Validate [forms](https://rocket.rs/v0.4/guide/requests/#forms) to have valid
121+
Validate [forms](https://rocket.rs/v0.5-rc/guide/requests/#forms) to have valid
122122
authenticity token:
123123

124124
```rust
@@ -140,7 +140,7 @@ TODO
140140
----
141141

142142
* [ ] Add fairing to verify all requests as an option.
143-
* [ ] Add [data guard](https://api.rocket.rs/v0.4/rocket/data/trait.FromData.html) to verify forms with a guard.
143+
* [ ] Add [data guard](https://api.rocket.rs/v0.5-rc/rocket/data/trait.FromData.html) to verify forms with a guard.
144144
* [ ] Add helpers to render form field.
145145
* [ ] Add helpers to add HTML meta tags for Ajax with `X-CSRF-Token` header.
146146
* [ ] Verify `X-CSRF-Token` header.

0 commit comments

Comments
 (0)