diff --git a/docs/docs/controllers/REST/index.md b/docs/docs/controllers/REST/index.md index 899f23f2..2f872ae7 100644 --- a/docs/docs/controllers/REST/index.md +++ b/docs/docs/controllers/REST/index.md @@ -111,7 +111,6 @@ Rwf comes with a REST [controller](../), which has the six aforementioned method ```rust use rwf::prelude::*; -use rwf::controller::RestController; #[derive(Default, macros::RestController)] struct Users; @@ -174,6 +173,5 @@ The `rest!` macro will ensure that all [six](#six-methods) REST-style paths are ## Learn more -- [Model controller](../model-controller) -- [Serialization](../serialization) +- [Model controller](model-controller.md) - [examples/rest](https://github.com/levkk/rwf/tree/main/examples/rest) diff --git a/docs/docs/models/join-models.md b/docs/docs/models/join-models.md index c7ca36bf..9a650a86 100644 --- a/docs/docs/models/join-models.md +++ b/docs/docs/models/join-models.md @@ -62,7 +62,7 @@ Specifying the `belongs_to` relationship allows us to query the `Project` model The `join::` method accepts a generic argument specifying which model we are joining to. If the association between `Project` and `User` doesn't exist, the Rust compiler will return an error. This helps us avoid common errors by accidentally joining tables that don't have a relationship. -## Disambiguating fields +## Disambiguation fields More often than not, two tables have columns with the same name. The most obvious example of this is the primary key, the `id` column by default, which exists in all Rwf models. To specify which table & column a query is referring to, Rwf provides the ability to fully qualify the column with the table name: