Sha256: 942691dfd94fab1c42e0169b5519c3a4b6b36771039b4a8fba4cce4356e6220f
Contents?: true
Size: 465 Bytes
Versions: 11
Compression:
Stored size: 465 Bytes
Contents
module Trestle class Form extend ActiveSupport::Autoload autoload :Automatic autoload :Builder autoload :Field autoload :Fields autoload :Renderer attr_reader :options, :block def initialize(options={}, &block) @options, @block = options, block end def dialog? options[:dialog] == true end def render(template, instance) Renderer.new(template).render_form(instance, &block) end end end
Version data entries
11 entries across 11 versions & 1 rubygems