module Sequel::Plugins::Forme::ERBSequelForm

  1. lib/sequel/plugins/forme.rb

Helper module used for Sequel forms using ERB template integration. Necessary for proper subform handling when using such forms with partials.

Methods

Public Instance

  1. subform

Public Instance methods

subform (*, &block)

Capture the inside of the inputs, injecting it into the template if a block is given, or returning it as a string if not.

[show source]
# File lib/sequel/plugins/forme.rb, line 444
def subform(*, &block)
  if block
    capture(block){super}
  else
    capture{super}
  end
end