Skip to content

Commit

Permalink
Merge pull request #117 from mgrachev/feature/update-readme
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
davydovanton authored Jan 30, 2017
2 parents 98bb06e + 391e66f commit cf870f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Hanami::View.load!

path = Hanami::View.configuration.root.join('articles/index.html.erb')
template = Hanami::View::Template.new(path)
articles = ArticleRepository.all
articles = ArticleRepository.new.all

Articles::Index.new(template, articles: articles).render
```
Expand All @@ -121,7 +121,7 @@ end

Hanami::View.load!

articles = ArticleRepository.all
articles = ArticleRepository.new.all

Articles::Index.render(format: :html, articles: articles)
# => This will use Articles::Index
Expand Down

0 comments on commit cf870f3

Please sign in to comment.