module Sequel::Plugins::Forme::SinatraSequelForm

  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.


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
459 def subform(*, &block)
460   if block
461     capture(block){super}
462   else
463     capture{super}
464   end
465 end