Skip to content
Permalink
Browse files

Merge branch 'fix-various-typos' of https://github.com/Erol/hanami.gi…

…thub.io into Erol-fix-various-typos
  • Loading branch information...
jodosha committed May 20, 2016
2 parents f51d486 + 6417f71 commit fa22548cdee96ef255e47534047857b7269bda74
@@ -9,7 +9,7 @@ title: Guides - Action Control Flow
If we want to execute some logic before and/or after `#call` is executed, we can use a callback.
Callbacks are useful to declutter code for common tasks like checking if a user is signed in, set a record, handle 404 responses or tidy up the response.

The correspoding DSL methods are `before` and `after`.
The corresponding DSL methods are `before` and `after`.
These methods each accept a symbol that is the name of the method that we want to call, or an anonymous proc.

### Methods
@@ -7,7 +7,7 @@ title: Guides - Getting Started
<div id="getting-started-lead">
<p>
Hello. If you're reading this page, it's very likely that you want to learn more about Hanami.
That's great, congrats! If you're looking for new ways to build maintanable, secure, faster and testable web applications, you're in good hands.
That's great, congrats! If you're looking for new ways to build maintainable, secure, faster and testable web applications, you're in good hands.
</p>

<p>
@@ -11,7 +11,7 @@ It is rendered by bounding the [context](/guides/mailers/basic-usage) of a maile

## Naming

For covenience, there is a correlation between the view mailer name and the template file name.
For convenience, there is a correlation between the view mailer name and the template file name.
It's the translation of the name into a path: from `Mailers::ForgotPassword` to `forgot_password`.

The remaining part is made of multiple file extensions.
@@ -87,7 +87,7 @@ Rendering context for a template is made of view methods and exposures.

## Custom Rendering

Hanami perfoms rendering by calling `#render` on a view and it expects a string in return.
Hanami performs rendering by calling `#render` on a view and it expects a string in return.
The benefit of an object oriented approach is the ability to easily diverge from default behavior.

We can override that method to define a custom rendering policy.

0 comments on commit fa22548

Please sign in to comment.
You can’t perform that action at this time.