From 6ad9e2c4a5d00ad8ca379344f26d01be86a610ba Mon Sep 17 00:00:00 2001
From: eileencodes <eileencodes@gmail.com>
Date: Fri, 10 Apr 2015 16:43:38 -0400
Subject: [ci skip] Remove `link_to_function` and `button_from_function` from
 guides

These methods were removed in cb9f7f4 and are no longer methods in the
Rails codebase.
---
 guides/source/action_view_overview.md | 21 ---------------------
 1 file changed, 21 deletions(-)

(limited to 'guides/source')

diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md
index 02ef32d66e..e76158e259 100644
--- a/guides/source/action_view_overview.md
+++ b/guides/source/action_view_overview.md
@@ -1361,18 +1361,6 @@ date_field_tag "dob"
 
 Provides functionality for working with JavaScript in your views.
 
-#### button_to_function
-
-Returns a button that'll trigger a JavaScript function using the onclick handler. Examples:
-
-```ruby
-button_to_function "Greeting", "alert('Hello world!')"
-button_to_function "Delete", "if (confirm('Really?')) do_delete()"
-button_to_function "Details" do |page|
-  page[:details].visual_effect :toggle_slide
-end
-```
-
 #### define_javascript_functions
 
 Includes the Action Pack JavaScript libraries inside a single `script` tag.
@@ -1397,15 +1385,6 @@ alert('All is good')
 </script>
 ```
 
-#### link_to_function
-
-Returns a link that will trigger a JavaScript function using the onclick handler and return false after the fact.
-
-```ruby
-link_to_function "Greeting", "alert('Hello world!')"
-# => <a onclick="alert('Hello world!'); return false;" href="#">Greeting</a>
-```
-
 ### NumberHelper
 
 Provides methods for converting numbers into formatted strings. Methods are provided for phone numbers, currency, percentage, precision, positional notation, and file size.
-- 
cgit v1.2.3