Skip to content

Commit a99ca81

Browse files
eileencodescarlosantoniodasilva
authored andcommitted
[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.
1 parent 4df216c commit a99ca81

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

guides/source/action_view_overview.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,18 +1420,6 @@ date_field_tag "dob"
14201420

14211421
Provides functionality for working with JavaScript in your views.
14221422

1423-
#### button_to_function
1424-
1425-
Returns a button that'll trigger a JavaScript function using the onclick handler. Examples:
1426-
1427-
```ruby
1428-
button_to_function "Greeting", "alert('Hello world!')"
1429-
button_to_function "Delete", "if (confirm('Really?')) do_delete()"
1430-
button_to_function "Details" do |page|
1431-
page[:details].visual_effect :toggle_slide
1432-
end
1433-
```
1434-
14351423
#### define_javascript_functions
14361424

14371425
Includes the Action Pack JavaScript libraries inside a single `script` tag.
@@ -1456,15 +1444,6 @@ alert('All is good')
14561444
</script>
14571445
```
14581446

1459-
#### link_to_function
1460-
1461-
Returns a link that will trigger a JavaScript function using the onclick handler and return false after the fact.
1462-
1463-
```ruby
1464-
link_to_function "Greeting", "alert('Hello world!')"
1465-
# => <a onclick="alert('Hello world!'); return false;" href="#">Greeting</a>
1466-
```
1467-
14681447
### NumberHelper
14691448

14701449
Provides methods for converting numbers into formatted strings. Methods are provided for phone numbers, currency, percentage, precision, positional notation, and file size.

0 commit comments

Comments
 (0)