diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2017-05-20 12:58:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-20 12:58:17 +0100 |
commit | 1c2dd9cb66ceda3c8febfed4f3f2cb39ae92bd4a (patch) | |
tree | 7654d48e1a2367194083a9a7f06e98d23a9cfd97 /guides/source/layouts_and_rendering.md | |
parent | e4ce81c2342e5e907bd0d2adba3071ca43159788 (diff) | |
parent | 062e5f2b068fbce74102d7301b58a3cd7c5da883 (diff) | |
download | rails-1c2dd9cb66ceda3c8febfed4f3f2cb39ae92bd4a.tar.gz rails-1c2dd9cb66ceda3c8febfed4f3f2cb39ae92bd4a.tar.bz2 rails-1c2dd9cb66ceda3c8febfed4f3f2cb39ae92bd4a.zip |
Merge pull request #29158 from ffmike/add-json-feed
Add :json type to auto_discovery_link_tag
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"}, |