Module: Showbuilder::ShowForm
- Included in:
- Showbuilder
- Defined in:
- lib/showbuilder/show_form.rb
Instance Method Summary collapse
Instance Method Details
#show_form(url, options = {}, &block) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/showbuilder/show_form.rb', line 5 def show_form(url, = {}, &block) = || {} [:class] = "#{[:class]} form-horizontal" self.form_tag url, do builder = Showbuilder::Builders::FormBuilder.new(self) self.capture(builder, &block) end end |