Skip to content

Commit 6efdf17

Browse files
authored
Fix some broken links and section names. (#149)
1 parent 44a4c45 commit 6efdf17

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

content/v2.0/app/autoloading.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ None of the above classes or modules need a require statement before use.
5858

5959
It's worth noting that, thanks to Hanami's [component managment system](/v2.0/app/container-and-components/), the components you write in `app/` don't commonly need to reference their collaborators using Ruby constants - they instead use the Deps mixin to access their dependencies.
6060

61-
If you are adding a class to the `app/` directory that you want to use an autoloaded Ruby constant to reference, it's very likely that you do not want that class to be registered in your app container. To opt out of registration, use the magic comment `# auto_register: false` or one of the alternative methods discussed in "Opting out of the container" in the [containers and components guide](/v2.0/app/container-and-components/).
61+
If you are adding a class to the `app/` directory that you want to use an autoloaded Ruby constant to reference, it's very likely that you do not want that class to be registered in your app container. To opt out of registration, use the magic comment `# auto_register: false` or one of the alternative methods discussed in "Opting out of the container" in the [container and components guide](/v2.0/app/container-and-components/).
6262

6363
```ruby
6464
# auto_register: false

content/v2.0/app/booting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,4 @@ irb(main)> Hanami.app.keys
157157
"rack.monitor"]
158158
```
159159
160-
You can read more about components and containers in more detail in the [Containers and components guide](/v2.0/app/container-and-components/). Providers are covered in the [providers guide](/v2.0/app/providers/).
160+
You can read more about components and containers in more detail in the [container and components guide](/v2.0/app/container-and-components/). Providers are covered in the [providers guide](/v2.0/app/providers/).

content/v2.0/app/environments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ See the [app config guide](/v2.0//app/app-config/) for information on supported
103103

104104
When deploying your application to production, set the `HANAMI_ENV` environment variable to `production`.
105105

106-
In production, Hanami logs to standard out by default, using a structured JSON format with a log level of `:info` rather than `:debug`, which is used in development and test. See the [logger guide](/v2.0/app/logger/) for more detail.
106+
In production, Hanami logs to standard out by default, using a structured JSON format with a log level of `:info` rather than `:debug`, which is used in development and test. See the [logger guide](/v2.0/logger/configuration/) for more detail.

content/v2.0/app/settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ end
1919

2020
Using this class, you can specify what settings exist within your application, what types and defaults they have, and whether or not they are required for your application to boot.
2121

22-
These "app settings" are unrelated to ["app configs"](/v2.0//app/app-config/), which configure framework behaviours. App settings are your own to define and use.
22+
These "app settings" are unrelated to ["app configs"](/v2.0/app/app-config/), which configure framework behaviours. App settings are your own to define and use.
2323

2424
Each app setting is read from an environment variable matching its name. For example, the Redis URL and Sentry DSN settings below are sourced from the `REDIS_URL` and `SENTRY_DSN` environment variables respectively.
2525

content/v2.0/app/slices.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module API
7171
end
7272

7373
def handle(request, response)
74-
response.format = format(:json)
74+
response.format = :json
7575

7676
halt 422, {error: "Unprocessable country code"}.to_json unless request.params.valid?
7777

@@ -326,7 +326,7 @@ end
326326

327327
Slice settings are loaded from environment variables just like the app settings, so take care to ensure you have no naming clashes between your slice and app settings.
328328

329-
See the [settings guide](/v2.0//app/app-config/) for more information on settings.
329+
See the [settings guide](/v2.0/app/settings/) for more information on settings.
330330

331331
## Slice loading
332332

content/v2.0/introduction/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ end
727727

728728
To get this spec to pass, we'll need to update our books index action to return books from the books relation.
729729

730-
To access the books relation within the action, we can use Hanami's "Deps mixin". Covered in detail in the [containers and components](/v2.0/app/container-and-components/) section of the Architecture guide, the Deps mixin gives each of your application's components easy access to the other components it depends on to achieve its work. We'll see this in more detail as these guides progress.
730+
To access the books relation within the action, we can use Hanami's "Deps mixin". Covered in detail in the [container and components](/v2.0/app/container-and-components/) section of the Architecture guide, the Deps mixin gives each of your application's components easy access to the other components it depends on to achieve its work. We'll see this in more detail as these guides progress.
731731

732732
For now however, it's enough to know that we can use `include Deps["persistence.rom"]` to make rom-rb available via a `rom` method within our action. The books relation is then available via `rom.relations[:books]`.
733733

0 commit comments

Comments
 (0)