Files

JqmobileHelpers::ActionViewExtensions::FormHelper

This module creates simple form wrappers around default form_for and fields_for.

Example:

  jq_form_for @user do |f|
    f.input :name, :required => true, :description => 'Your name please'
  end

Constants

FIELD_ERROR_PROC

Override the default ActiveRecordHelper behaviour of wrapping the input. This gets taken care of semantically by adding an error class to the wrapper tag containing the input.

Public Instance Methods

with_custom_field_error_proc(&block) click to toggle source
    # File lib/jqmobile_helpers/action_view_extensions/form_helper.rb, line 24
24:       def with_custom_field_error_proc(&block)
25:         @@default_field_error_proc = ::ActionView::Base.field_error_proc
26:         ::ActionView::Base.field_error_proc = FIELD_ERROR_PROC
27:         result = yield
28:         ::ActionView::Base.field_error_proc = @@default_field_error_proc
29:         result
30:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.