diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-04-12 14:52:28 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-04-12 14:52:28 +0900 |
commit | 3b88493bbbcfe3a18611e6601a10906ea1248c90 (patch) | |
tree | 38b8189d5f3f7db66f85f0bca25691817add852e | |
parent | 11e8b46a1296889c9c85472a50c6ad6903c021c9 (diff) | |
download | rails-3b88493bbbcfe3a18611e6601a10906ea1248c90.tar.gz rails-3b88493bbbcfe3a18611e6601a10906ea1248c90.tar.bz2 rails-3b88493bbbcfe3a18611e6601a10906ea1248c90.zip |
remove reference to `register_javascript_expansion` and `register_stylesheet_expansion` from guide [ci skip]
These methods no longer exists.
-rw-r--r-- | guides/source/action_view_overview.md | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md index e7f57063d5..abf6c0db11 100644 --- a/guides/source/action_view_overview.md +++ b/guides/source/action_view_overview.md @@ -376,32 +376,6 @@ config.action_controller.asset_host = "assets.example.com" image_tag("rails.png") # => <img src="http://assets.example.com/images/rails.png" alt="Rails" /> ``` -#### register_javascript_expansion - -Register one or more JavaScript files to be included when symbol is passed to javascript_include_tag. This method is typically intended to be called from plugin initialization to register JavaScript files that the plugin installed in `vendor/assets/javascripts`. - -```ruby -ActionView::Helpers::AssetTagHelper.register_javascript_expansion monkey: ["head", "body", "tail"] - -javascript_include_tag :monkey # => - <script src="/assets/head.js"></script> - <script src="/assets/body.js"></script> - <script src="/assets/tail.js"></script> -``` - -#### register_stylesheet_expansion - -Register one or more stylesheet files to be included when symbol is passed to `stylesheet_link_tag`. This method is typically intended to be called from plugin initialization to register stylesheet files that the plugin installed in `vendor/assets/stylesheets`. - -```ruby -ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion monkey: ["head", "body", "tail"] - -stylesheet_link_tag :monkey # => - <link href="/assets/head.css" media="screen" rel="stylesheet" /> - <link href="/assets/body.css" media="screen" rel="stylesheet" /> - <link href="/assets/tail.css" media="screen" rel="stylesheet" /> -``` - #### auto_discovery_link_tag Returns a link tag that browsers and feed readers can use to auto-detect an RSS or Atom feed. |