Skip to content

Commit

Permalink
Added a clarification about the difference between display_meta_tags …
Browse files Browse the repository at this point in the history
…and set_meta_tags methods (closes #258)
  • Loading branch information
kpumuk committed Oct 17, 2023
1 parent e7bb521 commit 2de2dd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ When views are rendered, the page title will be included in the right spots:

You can find allowed options for `display_meta_tags` method below.

> [!IMPORTANT]
> You **must** use `display_meta_tags` in the layout files to render the meta tags. In the views, you will instead use `set_meta_tags`, which accepts the same arguments but does not render anything in the place where it is called.
### Using MetaTags in controller

You can define following instance variables:
Expand Down

0 comments on commit 2de2dd5

Please sign in to comment.