diff options
author | Mike Gunderloy <MikeG1@larkfarm.com> | 2017-05-20 04:00:13 -0500 |
---|---|---|
committer | Mike Gunderloy <MikeG1@larkfarm.com> | 2017-05-20 04:00:13 -0500 |
commit | 062e5f2b068fbce74102d7301b58a3cd7c5da883 (patch) | |
tree | 4e0037781d624a11b944d00d5f2486146e2d9272 /guides/source/layouts_and_rendering.md | |
parent | 055535fd1b265fba7528044235da665bd41374b9 (diff) | |
download | rails-062e5f2b068fbce74102d7301b58a3cd7c5da883.tar.gz rails-062e5f2b068fbce74102d7301b58a3cd7c5da883.tar.bz2 rails-062e5f2b068fbce74102d7301b58a3cd7c5da883.zip |
Add :json type to auto_discovery_link_tag
This allows auto_discovery_link_tag to support the JSON Feed standard.
See https://jsonfeed.org/version/1 for more information.
Diffstat (limited to 'guides/source/layouts_and_rendering.md')
-rw-r--r-- | guides/source/layouts_and_rendering.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/layouts_and_rendering.md b/guides/source/layouts_and_rendering.md index 48bb3147f3..caa3d21d23 100644 --- a/guides/source/layouts_and_rendering.md +++ b/guides/source/layouts_and_rendering.md @@ -768,7 +768,7 @@ WARNING: The asset tag helpers do _not_ verify the existence of the assets at th #### Linking to Feeds with the `auto_discovery_link_tag` -The `auto_discovery_link_tag` helper builds HTML that most browsers and feed readers can use to detect the presence of RSS or Atom feeds. It takes the type of the link (`:rss` or `:atom`), a hash of options that are passed through to url_for, and a hash of options for the tag: +The `auto_discovery_link_tag` helper builds HTML that most browsers and feed readers can use to detect the presence of RSS, Atom, or JSON feeds. It takes the type of the link (`:rss`, `:atom`, or `:json`), a hash of options that are passed through to url_for, and a hash of options for the tag: ```erb <%= auto_discovery_link_tag(:rss, {action: "feed"}, |