Skip to content

Commit

Permalink
[ci skip] README improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed May 22, 2015
1 parent 8571ea6 commit d2cd761
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 @@ -470,9 +470,9 @@ Articles::Index.render(format: :rss) # => Will use nothing

As per convention, layout templates are located under `Lotus::View.root` or `ApplicationLayout.root` and use the underscored name (eg. `ApplicationLayout => application.html.erb`).

### Content For
### Optional Content

If we want to render optional contents such as sidebar links or page specific javascripts, we can use `content`
If we want to render optional contents such as sidebar links or page specific javascripts, we can use `#content`
It accepts a key that represents a method that should be available within the rendering context.
That context is made of the locals, and the methods that view and layout respond to.
If the context can't dispatch that method, it returns `nil`.
Expand Down

0 comments on commit d2cd761

Please sign in to comment.