Class: Houston::Extensions::FormBuilderDsl

Inherits:
Object
  • Object
show all
Defined in:
lib/houston/boot/extensions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFormBuilderDsl

Returns a new instance of FormBuilderDsl.



240
241
242
# File 'lib/houston/boot/extensions.rb', line 240

def initialize
  @form = ProjectFeatureForm.new
end

Instance Attribute Details

#formObject (readonly)

Returns the value of attribute form.



238
239
240
# File 'lib/houston/boot/extensions.rb', line 238

def form
  @form
end

Instance Method Details

#html(&block) ⇒ Object



248
249
250
# File 'lib/houston/boot/extensions.rb', line 248

def html(&block)
  form.render_block = block
end

#name(value) ⇒ Object



244
245
246
# File 'lib/houston/boot/extensions.rb', line 244

def name(value)
  form.name = value
end