| ActiveRecordHelper |
The Active Record Helper makes it easier to create forms for records kept
in instance variables. The most far-reaching is the form method that
creates a complete form for all the basic content types of the record (not
associations or aggregations, though). This is a great way of making the
record quickly available for editing, but likely to prove lackluster for a
complicated real-world form. In that case, it’s better to use the
input method and the specialized form methods in link:classes/ActionView/Helpers/FormHelper.html
|
| AssetTagHelper |
This module provides methods for generating HTML that links views to assets
such as images, javascripts, stylesheets, and feeds. These methods do not
verify the assets exist before linking to them.
|
| AtomFeedHelper |
|
| BenchmarkHelper |
This helper offers a method to measure the execution time of a block in a
template.
|
| CacheHelper |
This helper to exposes a method for caching of view fragments. See
ActionController::Caching::Fragments for usage instructions.
|
| CaptureHelper |
CaptureHelper exposes methods to let you extract generated markup which can
be used in other parts of a template or layout file. It provides a method
to capture blocks into variables through capture and a way to capture a
block of markup for use in a layout through content_for.
|
| DateHelper |
The Date Helper primarily creates select/option tags for different kinds of
dates and date elements. All of the select-type methods share a number of
common options that are as follows:
|
| DebugHelper |
Provides a set of methods for making it easier to debug Rails objects.
|
| FormHelper |
Form helpers are designed to make working with models much easier compared
to using just standard HTML elements by providing a set of methods for
creating forms based on your models. This helper generates the HTML for
forms, providing a method for each sort of input (e.g., text, password,
select, and so on). When the form is submitted (i.e., when the user hits
the submit button or form.submit is called via JavaScript), the
form inputs will be bundled into the params object and passed back
to the controller.
|
| FormOptionsHelper |
Provides a number of methods for turning different kinds of containers into
a set of option tags.
|
| FormTagHelper |
Provides a number of methods for creating form tags that doesn’t rely
on an ActiveRecord object assigned to the template like FormHelper does.
Instead, you provide the names and values manually.
|
| JavaScriptHelper |
Provides functionality for working with JavaScript in your views.
|
| NumberHelper |
Provides methods for converting numbers into formatted strings. Methods are
provided for phone numbers, currency, percentage, precision, positional
notation, and file size.
|
| PrototypeHelper |
Prototype is a JavaScript library
that provides DOM
manipulation, Ajax
functionality, and more traditional object-oriented facilities for
JavaScript. This module provides a set of helpers to make it more
convenient to call functions from Prototype using Rails, including
functionality to call remote Rails methods (that is, making a background
request to a Rails action) using Ajax. This means that you can call actions
in your controllers without reloading the page, but still update certain
parts of it using injections into the DOM. A common use case is having a
form that adds a new element to a list without reloading the page or
updating a shopping cart total when a new item is added.
|
| RecordIdentificationHelper |
|
| RecordTagHelper |
|
| SanitizeHelper |
The SanitizeHelper module provides a set of methods for scrubbing text of
undesired HTML elements. These helper methods extend ActionView making them
callable within your template files.
|
| ScriptaculousHelper |
Provides a set of helpers for calling Scriptaculous JavaScript functions,
including those which create Ajax controls and visual effects.
|
| TagHelper |
Provides methods to generate HTML tags programmatically when you
can’t use a Builder. By default, they output XHTML compliant tags.
|
| TextHelper |
The TextHelper module provides a set of methods for filtering, formatting
and transforming strings, which can reduce the amount of inline Ruby code
in your views. These helper methods extend ActionView making them callable
within your template files.
|
| UrlHelper |
Provides a set of methods for making links and getting URLs that depend on
the routing subsystem (see ActionController::Routing). This allows you to
use the same format for links in views and controllers.
|
<code/>and<pre/>for code samples.