class Trestle::Form
Attributes
block[R]
options[R]
Public Class Methods
new(options={}, &block)
click to toggle source
# File lib/trestle/form.rb, line 11 def initialize(options={}, &block) @options, @block = options, block end
Public Instance Methods
dialog?()
click to toggle source
# File lib/trestle/form.rb, line 15 def dialog? options[:dialog] == true end
render(template, instance)
click to toggle source
# File lib/trestle/form.rb, line 19 def render(template, instance) Renderer.new(template).render_form(instance, &block) end